Using --cov-fail-under ends with traceback.
See original GitHub issueI’m using tox to run my tests and this is happening on 2.7, 3.4, 3.5 and 3.6.0a0, tox.ini file. To reproduce, run any suite of tests with less than the desired line coverage. Sample traceback
I only noticed this because I’m starting a new project with one test to see if I could get a combined HTML coverage report for all environments.
I’m wondering if this line should be a sys.exit(1)
(or similar) instead
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Understanding the Python Traceback
In this step-by-step tutorial, you'll learn how to read and understand the information you can get from a Python traceback. You'll walk through...
Read more >traceback — Print or retrieve a stack traceback — Python 3.11 ...
The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError...
Read more >How to catch and print the full exception traceback without ...
It seems I'm the only one in the world who wants to print the stack when there's no error (= only to see...
Read more >How to read a traceback in Python
When Python encounters an error in your code, it will print out a traceback. Let's talk about how to use tracebacks to fix...
Read more >Traceback in Python - GeeksforGeeks
Traceback is a python module that provides a standard interface to extract, format and print stack traces of a python program.
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
Hi, I’m having about the same issue as OP. When I set the threshold to 100 (and I like it that high) it’s nearly certainly that a failed test will miss some lines and then I can’t see what actually went wrong in the test because of the traceback. Kind of a bummer…
This is corrected via #116.