Coverage.py 5.0a5: pytest contexts

1 · Ned Batchelder · May 13, 2019, 12:14 p.m.
Development of version 5 of coverage.py is going slowly, but it is progressing. The latest alpha is out: coverage.py 5.0a5. The biggest changes are due to Stephan Richter and Justas Sadzevičius, from Shoobox. They improved the support for recording dynamic contexts, informally known as Who Tests What.Now third-party code, either as a coverage.py plugin or using the coverage.py API can set the dynamic context.I’ve added support for this to the pytest-cov plugin, to record the pytest test id as t...