Results 963 comments of Ned Batchelder

I think I'd change the `last_line_squeezed` function to return the last non-blank line. Line count assertions can be incremented.

Coverage.py doesn't directly provide the information you want, but it can help. Use the [dynamic contexts](https://coverage.readthedocs.io/en/7.6.1/contexts.html#dynamic-contexts) feature to record lines separately for each test. Then you'll have to map the...

The tests are skipped if the branch is named `*notests*`, can we use the same mechanism?

Thanks for this, sorry I didn't merge it. In the meantime, I've added more elaborate filtering to the workflows: https://github.com/nedbat/coveragepy/blob/master/.github/workflows/testsuite.yml#L31-L56

The first thing to check is what tracer you are using. Coverage.py has a C tracer and a Python tracer. You want the C tracer. It still adds overhead to...

OK, it's good that you have the right pieces in place. Is it possible to give me a way to reproduce the problem?

Thanks for the code and timings. The performance of coverage is dependent on many things, so it can be hard to isolate a single cause for slowness, and even harder...

Thanks for digging into it. Unfortunately, we don't have a way to turn off the trace function per-line, and we don't know when the entire function has been trace, though...

You can run `coverage report --format=markdown` as a second command and get the output without changing pytest-cov at all.