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.

Using --cov-fail-under ends with traceback.

See original GitHub issue

I’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:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
butlacommented, Mar 20, 2016

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…

0reactions
ionelmccommented, Jun 20, 2016

This is corrected via #116.

Read more comments on GitHub >

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

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