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.

.coveragerc doesn't support configuration of modules to be executed (like behave)

See original GitHub issue

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

github_iconTop GitHub Comments

1reaction
nedbatcommented, Nov 25, 2018

This was released as part of 5.0a4.

Read more comments on GitHub >

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

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