github nedbat/coveragepy coverage-5.0a6
5.0a6

latest releases: 7.6.3, 7.6.2, 7.6.1...
pre-release19 hours ago

Version 5.0a6 — 2019-07-16

  • Reporting on contexts. Big thanks to Stephan Richter and Albertas Agejevas for the contribution.
    • The --contexts option is available on the report and html commands. It’s a comma-separated list of shell-style wildcards, selecting the contexts to report on. Only contexts matching one of the wildcards will be included in the report.
    • The --show-contexts option for the html command adds context information to each covered line. Hovering over the “ctx” marker at the end of the line reveals a list of the contexts that covered the line.
  • Database changes:
    • Line numbers are now stored in a much more compact way. For each file and context, a single binary string is stored with a bit per line number. This greatly improves memory use, but makes ad-hoc use difficult.
    • Dynamic contexts with no data are no longer written to the database.
    • SQLite data storage is now faster. There’s no longer a reason to keep the JSON data file code, so it has been removed.
  • Changes to the CoverageData interface:
    • The new CoverageData.dumps() method serializes the data to a string, and a corresponding CoverageData.loads() method reconstitutes this data. The format of the data string is subject to change at any time, and so should only be used between two installations of the same version of coverage.py.
    • The CoverageData constructor has a new argument, no_disk (default: False). Setting it to True prevents writing any data to the disk. This is useful for transient data objects.
  • Added the class method Coverage.current() to get the latest started Coverage instance.
  • Multiprocessing support in Python 3.8 was broken, but is now fixed. Closes issue 828.
  • Error handling during reporting has changed slightly. All reporting methods now behave the same. The --ignore-errors option keeps errors from stopping the reporting, but files that couldn’t parse as Python will always be reported as warnings. As with other warnings, you can suppress them with the [run] disable_warnings configuration setting.
  • Coverage.py no longer fails if the user program deletes its current directory. Fixes issue 806. Thanks, Dan Hemberger.
  • The scrollbar markers in the HTML report now accurately show the highlighted lines, regardless of what categories of line are highlighted.
  • The hack to accommodate ShiningPanda looking for an obsolete internal data file has been removed, since ShiningPanda 0.22 fixed it four years ago.
  • The deprecated Reporter.file_reporters property has been removed.

➡️  PyPI page: coverage 5.0a6.
➡️  To install: python3 -m pip install coverage==5.0a6

Don't miss a new coveragepy release

NewReleases is sending notifications on new releases.