A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nedbat/coveragepy/issues/386 below:

Error on unrecognised configuration directive in .coveragerc · Issue #386 · nedbat/coveragepy · GitHub

Originally reported by Kristian Glass (Bitbucket: DoISmellBurning, GitHub: DoISmellBurning)

I'd love it if coverage gave me an error if it encountered unrecognised directives in .coveragerc

Spot the problems with these files:

[run]
source = foo

[report]
branch = True

Did you notice that branch was in the report section when it should have been in run? You probably did, because you were deliberately looking for mistakes and it's a short file, but it's very easy to miss at a glance!

What about:

[report]
fail_under = 100

I cheated here. That's absolutely fine if you're using 4.0aSomething, but 3.7.1 doesn't support that directive (#314) which is entirely reasonable, but it's sure unpleasant to discover that you thought you were mandating 100% coverage but actually weren't...!

Some sort of "I don't know what to do with foo!" reporting, even if just a warning/informational message, would be incredibly useful please!


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4