4.0a1
Pre-release
Pre-release
nedbat
released this
13 Oct 23:31
·
4976 commits
to master
since this release
Version 4.0a1 — 2014-09-27
- Python versions supported are now CPython 2.6, 2.7, 3.2, 3.3, and 3.4, and PyPy 2.2.
- Gevent, eventlet, and greenlet are now supported, closing issue 149. The
concurrency
setting specifies the concurrency library in use. Huge thanks to Peter Portante for initial implementation, and to Joe Jevnik for the final insight that completed the work. - Options are now also read from a setup.cfg file, if any. Sections are prefixed with “coverage:”, so the
[run]
options will be read from the[coverage:run]
section of setup.cfg. Finishes issue 304. - The
report -m
command can now show missing branches when reporting on branch coverage. Thanks, Steve Leonard. Closes issue 230. - The XML report now contains a <source> element, fixing issue 94. Thanks Stan Hu.
- The class defined in the coverage module is now called
Coverage
instead ofcoverage
, though the old name still works, for backward compatibility. - The
fail-under
value is now rounded the same as reported results, preventing paradoxical results, fixing issue 284. - The XML report will now create the output directory if need be, fixing issue 285. Thanks, Chris Rose.
- HTML reports no longer raise UnicodeDecodeError if a Python file has un-decodable characters, fixing issue 303 and issue 331.
- The annotate command will now annotate all files, not just ones relative to the current directory, fixing issue 57.
- The coverage module no longer causes deprecation warnings on Python 3.4 by importing the imp module, fixing issue 305.
- Encoding declarations in source files are only considered if they are truly comments. Thanks, Anthony Sottile.
➡️ PyPI page: coverage 4.0a1.
➡️ To install: python3 -m pip install coverage==4.0a1