Comments (4)
This is strange. I know people have been able to use this with windows in the past... Ill see if I can reproduce this... I think ill have some time tonight.
from diff_cover.
I had some trouble reproducing this.
I tried using a virtualenv in windows 10. I install diff cover and I am able to run diff-cover and diff-quality and the only errors I get are the expected validation error you would get when not providing any arguments.
λ virtualenv venv
Using base prefix 'c:\\users\\bachmann\\appdata\\local\\programs\\python\\python37-32'
New python executable in C:\Users\Bachmann\code\venv\Scripts\python.exe
Installing setuptools, pip, wheel...
done.
C:\Users\Bachmann\code
λ venv\Scripts\
activate.bat easy_install.exe pip3.exe wheel.exe
deactivate.bat pip.exe python.exe
easy_install-3.7.exe pip3.7.exe pythonw.exe
C:\Users\Bachmann\code
λ venv\Scripts\activate.bat
C:\Users\Bachmann\code
(venv) λ pip install diff-cover
Collecting diff-cover
Downloading https://files.pythonhosted.org/packages/55/0d/3aab24b03c40957b93912cc41e511e1e4069e0c10c1b08418f20ea7e2966/diff_cover-1.0.7.tar.gz (74kB)
100% |████████████████████████████████| 81kB 2.3MB/s
Collecting Jinja2>=2.7.1 (from diff-cover)
Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)
100% |████████████████████████████████| 133kB 3.1MB/s
Collecting six>=1.6.1 (from diff-cover)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting jinja2_pluralize (from diff-cover)
Downloading https://files.pythonhosted.org/packages/40/26/e6a6d7741076ea1bcfac02821e744fc40fa4cbb07e870b7dd969f4af8721/jinja2_pluralize-0.3.0-py2.py3-none-any.whl
Collecting pygments (from diff-cover)
Downloading https://files.pythonhosted.org/packages/13/e5/6d710c9cf96c31ac82657bcfb441df328b22df8564d58d0c4cd62612674c/Pygments-2.3.1-py2.py3-none-any.whl (849kB)
100% |████████████████████████████████| 849kB 4.9MB/s
Collecting MarkupSafe>=0.23 (from Jinja2>=2.7.1->diff-cover)
Downloading https://files.pythonhosted.org/packages/5b/d4/1deb3c5dc3714fb160c7e2116fc6dff36a063d9156a9328cce54ef35cc52/MarkupSafe-1.1.1-cp37-cp37m-win32.whl
Collecting inflect>=0.2.4 (from jinja2_pluralize->diff-cover)
Downloading https://files.pythonhosted.org/packages/86/02/e6b11020a9c37d25b4767a1d0af5835629f6e75d6f51553ad07a4c73dc31/inflect-2.1.0-py2.py3-none-any.whl (40kB)
100% |████████████████████████████████| 51kB 3.9MB/s
Building wheels for collected packages: diff-cover
Building wheel for diff-cover (setup.py) ... done
Stored in directory: C:\Users\Bachmann\AppData\Local\pip\Cache\wheels\cc\3e\07\7d709018d2f36544630ef5f9de77e074cfca5f6ef7dcd2ca9d
Successfully built diff-cover
Installing collected packages: MarkupSafe, Jinja2, six, inflect, jinja2-pluralize, pygments, diff-cover
Successfully installed Jinja2-2.10.1 MarkupSafe-1.1.1 diff-cover-1.0.7 inflect-2.1.0 jinja2-pluralize-0.3.0 pygments-2.3.1 six-1.12.0
C:\Users\Bachmann\code
(venv) λ diff-cover
usage: diff-cover [-h] [--html-report FILENAME] [--external-css-file FILENAME]
[--compare-branch BRANCH] [--fail-under SCORE]
[--ignore-staged] [--ignore-unstaged]
[--exclude EXCLUDE [EXCLUDE ...]]
[--src-roots DIRECTORY [DIRECTORY ...]]
coverage_xml [coverage_xml ...]
diff-cover: error: the following arguments are required: coverage_xml
C:\Users\Bachmann\code
(venv) λ diff-quality
usage: diff-quality [-h] --violations TOOL [--html-report FILENAME]
[--external-css-file FILENAME] [--compare-branch BRANCH]
[--options [OPTIONS]] [--fail-under SCORE]
[--ignore-staged] [--ignore-unstaged]
[--exclude EXCLUDE [EXCLUDE ...]]
[input_reports [input_reports ...]]
diff-quality: error: the following arguments are required: --violations
from diff_cover.
from diff_cover.
I update to the 1.0.7 version, and this problem fixed.
Thanks
from diff_cover.
Related Issues (20)
- Blank lines not factored into range HOT 2
- Few tests fails in rmtree HOT 6
- 7.3.1: test suite is failing in `tests/test_integration.py::TestDiffQualityIntegration::test_html_with_external_css` unit HOT 2
- Make chardet a optional dependency HOT 1
- In cpp file,The coverage of changed lines is not being counted HOT 2
- any ways to get all measured lines' numbers from json report HOT 2
- Feature request — Invert output to find flaky tests and help determine test failures HOT 1
- does this tool support C++ opencppcoverage? cppcoverage has html, cobertura reports. HOT 1
- urgent!! work environment!!No lines with coverage information in this diff. HOT 2
- new Github action for diff-cover HOT 1
- There is a folder code that cannot be counted. It has been analyzed for a long time, please help HOT 1
- 5 tests fail HOT 2
- Package has classifier "License :: Other/Proprietary License" - raising licensing flags for Sonatype HOT 3
- Enhancing Report Visualization in 'diff-cover' Project for Improved Code Analysis HOT 2
- 7.7.0: pytest is failing in `tests/test_violations_reporter.py::TestFlake8QualityReporterTest::test_file_does_not_exist` unit HOT 33
- Support ruff for quality checking HOT 1
- diff everything on removal HOT 11
- Diff between two coverage files instead of coverage file from branch HOT 2
- Running diff-quality with a tool which is not installed gives FIleNotFoundError rather than helpful "<tool> is not installed" error message HOT 2
- Add support for Pyright as a quality-checking tool HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diff_cover.