.coveragerc doesn't support configuration of modules to be executed (like behave)
See original GitHub issueInstead of specifying it all on the command line like this:
$ coverage run --omit "config/*,features/steps/*" -m behave features/local/
I would love to have something like this in my .coveragerc
file:
[run]
omit = config/*,features/steps/*
module_commandline = behave features/local
Omit works, but there’s no way (as far as I can tell) to specify I want to execute behave
against the features/local
directory in my example.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Plug-ins — Coverage.py 6.1.2 documentation
A plug-in is a separately installed Python class that you register in your .coveragerc. Plugins can alter a number of aspects of coverage.py's...
Read more >Command line usage — Coverage.py 6.4.4 documentation
Coverage.py can annotate your source code to show which lines were executed and which were not. The html command creates an HTML report...
Read more >Change history for coverage.py - Read the Docs
Fix: A module specified as the source setting is imported during startup, before the user program imports it. This could cause problems if...
Read more >Release 7.0.0b1 unknown
Coverage.py can annotate your source code to show which lines were executed and which were not. The html command creates an HTML report...
Read more >Configuration reference — Coverage.py 6.4.4 documentation
The default name for configuration files is .coveragerc , in the same directory coverage.py is being run in. Most of the settings in...
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 Free
Top 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
This was released as part of 5.0a4.
Implemented in https://github.com/nedbat/coveragepy/commit/e57549076220764ace6f2b67da3600ff5ae33f02.