question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to run coverage when invoking green via the setup.py runner?

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
CleanCutcommented, Dec 8, 2017

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…

0reactions
CleanCutcommented, Dec 8, 2017

Fixed in 2.12.0, which was just released.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found