How to run coverage when invoking green via the setup.py runner?
See original GitHub issueI asked this here too: https://stackoverflow.com/q/47567902/274318
I configured an alias for green
as a setup.py
command.
At first it looks like test dependencies are being installed (Processing coverage-4.4.2-py3.5.egg
) and then all of a sudden they aren’t (The 'coverage' module is not installed
). What’s going wrong?
(DictORM) 14:15 john@john:~/git/DictORM(master)$ python setup.py test --run-coverage
running green
Searching for coveralls
Best match: coveralls 1.2.0
Processing coveralls-1.2.0-py3.5.egg
Using /home/john/repos/git/DictORM/.eggs/coveralls-1.2.0-py3.5.egg
Searching for coverage
Best match: coverage 4.4.2
Processing coverage-4.4.2-py3.5.egg
Using /home/john/repos/git/DictORM/.eggs/coverage-4.4.2-py3.5.egg
Searching for docopt>=0.6.1
Best match: docopt 0.6.2
Processing docopt-0.6.2-py3.5.egg
Using /home/john/repos/git/DictORM/.eggs/docopt-0.6.2-py3.5.egg
Fatal: The 'coverage' module is not installed. Have you run 'pip install coverage' ???
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Command line usage — Coverage.py 7.0.0 documentation
When you install coverage.py, a command-line script called coverage is placed on ... To debug this problem, try using run --debug=trace to see...
Read more >setuptools command for coverage.py - Stack Overflow
What you are looking for is Extending Distutils capabilities through extensions and it is covered in the docs that I have linked.
Read more >Python Code Coverage Using GitHub Actions and Codecov
To get a local report, rerun the tests with coverage run -m unittest test.py . This will run the tests as before, but...
Read more >Coverage.py - Read the Docs
Jython 2.7.1, though only for running code, not reporting. ... I'm happy to answer questions about using coverage.py.
Read more >Running with coverage | PyCharm Documentation - JetBrains
The code coverage data is processed according to the option selected on the Coverage page of the Settings/Preferences dialog ( Ctrl+Alt+S ). Run...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Lol! I knew I should have waited for your response first. So there IS such a thing as officially optional.
Oh well. I already did the work of cutting out the optional support, and I like it because it’s less lines and simpler. So coverage is just required now. New release coming soon…
Fixed in 2.12.0, which was just released.