github nedbat/coveragepy coverage-4.0a2
4.0a2

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

Version 4.0a2 — 2015-01-14

  • Officially support PyPy 2.4, and PyPy3 2.4. Drop support for CPython 3.2 and older versions of PyPy. The code won’t work on CPython 3.2. It will probably still work on older versions of PyPy, but I’m not testing against them.
  • Plugins!
  • The original command line switches (-x to run a program, etc) are no longer supported.
  • A new option: coverage report –skip-covered will reduce the number of files reported by skipping files with 100% coverage. Thanks, Krystian Kichewko. This means that empty __init__.py files will be skipped, since they are 100% covered, closing issue 315.
  • You can now specify the --fail-under option in the .coveragerc file as the [report] fail_under option. This closes issue 314.
  • The COVERAGE_OPTIONS environment variable is no longer supported. It was a hack for --timid before configuration files were available.
  • The HTML report now has filtering. Type text into the Filter box on the index page, and only modules with that text in the name will be shown. Thanks, Danny Allen.
  • The textual report and the HTML report used to report partial branches differently for no good reason. Now the text report’s “missing branches” column is a “partial branches” column so that both reports show the same numbers. This closes issue 342.
  • If you specify a --rcfile that cannot be read, you will get an error message. Fixes issue 343.
  • The --debug switch can now be used on any command.
  • You can now programmatically adjust the configuration of coverage.py by setting items on Coverage.config after construction.
  • A module run with -m can be used as the argument to --source, fixing issue 328. Thanks, Buck Evan.
  • The regex for matching exclusion pragmas has been fixed to allow more kinds of white space, fixing issue 334.
  • Made some PyPy-specific tweaks to improve speed under PyPy. Thanks, Alex Gaynor.
  • In some cases, with a source file missing a final newline, coverage.py would count statements incorrectly. This is now fixed, closing issue 293.
  • The status.dat file that HTML reports use to avoid re-creating files that haven’t changed is now a JSON file instead of a pickle file. This obviates issue 287 and issue 237.

➡️  PyPI page: coverage 4.0a2.
➡️  To install: python3 -m pip install coverage==4.0a2

Don't miss a new coveragepy release

NewReleases is sending notifications on new releases.