Merge Debian packaging for release “4.2+dfsg.1-2”.
[debian_python-coverage.git] / CHANGES.rst
blobc9f56777c271b3a83f8b33ee5e9f840efe7c6ef2
1 .. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 .. For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
4 ==============================
5 Change history for Coverage.py
6 ==============================
8 Version 4.2 --- 2016-07-26
9 --------------------------
11 - Since ``concurrency=multiprocessing`` uses subprocesses, options specified on
12   the coverage.py command line will not be communicated down to them.  Only
13   options in the configuration file will apply to the subprocesses.
14   Previously, the options didn't apply to the subprocesses, but there was no
15   indication.  Now it is an error to use ``--concurrency=multiprocessing`` and
16   other run-affecting options on the command line.  This prevents
17   failures like those reported in `issue 495`_.
19 - Filtering the HTML report is now faster, thanks to Ville Skyttä.
21 .. _issue 495: https://bitbucket.org/ned/coveragepy/issues/495/branch-and-concurrency-are-conflicting
24 Version 4.2b1 --- 2016-07-04
25 ----------------------------
27 Work from the PyCon 2016 Sprints!
29 - BACKWARD INCOMPATIBILITY: the ``coverage combine`` command now ignores an
30   existing ``.coverage`` data file.  It used to include that file in its
31   combining.  This caused confusing results, and extra tox "clean" steps.  If
32   you want the old behavior, use the new ``coverage combine --append`` option.
34 - The ``concurrency`` option can now take multiple values, to support programs
35   using multiprocessing and another library such as eventlet.  This is only
36   possible in the configuration file, not from the command line. The
37   configuration file is the only way for sub-processes to all run with the same
38   options.  Fixes `issue 484`_.  Thanks to Josh Williams for prototyping.
40 - Using a ``concurrency`` setting of ``multiprocessing`` now implies
41   ``--parallel`` so that the main program is measured similarly to the
42   sub-processes.
44 - When using `automatic subprocess measurement`_, running coverage commands
45   would create spurious data files.  This is now fixed, thanks to diagnosis and
46   testing by Dan Riti.  Closes `issue 492`_.
48 - A new configuration option, ``report:sort``, controls what column of the
49   text report is used to sort the rows.  Thanks to Dan Wandschneider, this
50   closes `issue 199`_.
52 - The HTML report has a more-visible indicator for which column is being
53   sorted.  Closes `issue 298`_, thanks to Josh Williams.
55 - If the HTML report cannot find the source for a file, the message now
56   suggests using the ``-i`` flag to allow the report to continue. Closes
57   `issue 231`_, thanks, Nathan Land.
59 - When reports are ignoring errors, there's now a warning if a file cannot be
60   parsed, rather than being silently ignored.  Closes `issue 396`_. Thanks,
61   Matthew Boehm.
63 - A new option for ``coverage debug`` is available: ``coverage debug config``
64   shows the current configuration.  Closes `issue 454`_, thanks to Matthew
65   Boehm.
67 - Running coverage as a module (``python -m coverage``) no longer shows the
68   program name as ``__main__.py``.  Fixes `issue 478`_.  Thanks, Scott Belden.
70 - The `test_helpers` module has been moved into a separate pip-installable
71   package: `unittest-mixins`_.
73 .. _automatic subprocess measurement: http://coverage.readthedocs.io/en/latest/subprocess.html
74 .. _issue 199: https://bitbucket.org/ned/coveragepy/issues/199/add-a-way-to-sort-the-text-report
75 .. _issue 231: https://bitbucket.org/ned/coveragepy/issues/231/various-default-behavior-in-report-phase
76 .. _issue 298: https://bitbucket.org/ned/coveragepy/issues/298/show-in-html-report-that-the-columns-are
77 .. _issue 396: https://bitbucket.org/ned/coveragepy/issues/396/coverage-xml-shouldnt-bail-out-on-parse
78 .. _issue 454: https://bitbucket.org/ned/coveragepy/issues/454/coverage-debug-config-should-be
79 .. _issue 478: https://bitbucket.org/ned/coveragepy/issues/478/help-shows-silly-program-name-when-running
80 .. _issue 484: https://bitbucket.org/ned/coveragepy/issues/484/multiprocessing-greenlet-concurrency
81 .. _issue 492: https://bitbucket.org/ned/coveragepy/issues/492/subprocess-coverage-strange-detection-of
82 .. _unittest-mixins: https://pypi.python.org/pypi/unittest-mixins
85 Version 4.1 --- 2016-05-21
86 --------------------------
88 - The internal attribute `Reporter.file_reporters` was removed in 4.1b3.  It
89   should have come has no surprise that there were third-party tools out there
90   using that attribute.  It has been restored, but with a deprecation warning.
93 Version 4.1b3 --- 2016-05-10
94 ----------------------------
96 - When running your program, execution can jump from an ``except X:`` line to
97   some other line when an exception other than ``X`` happens.  This jump is no
98   longer considered a branch when measuring branch coverage.
100 - When measuring branch coverage, ``yield`` statements that were never resumed
101   were incorrectly marked as missing, as reported in `issue 440`_.  This is now
102   fixed.
104 - During branch coverage of single-line callables like lambdas and generator
105   expressions, coverage.py can now distinguish between them never being called,
106   or being called but not completed.  Fixes `issue 90`_, `issue 460`_ and
107   `issue 475`_.
109 - The HTML report now has a map of the file along the rightmost edge of the
110   page, giving an overview of where the missed lines are.  Thanks, Dmitry
111   Shishov.
113 - The HTML report now uses different monospaced fonts, favoring Consolas over
114   Courier.  Along the way, `issue 472`_ about not properly handling one-space
115   indents was fixed.  The index page also has slightly different styling, to
116   try to make the clickable detail pages more apparent.
118 - Missing branches reported with ``coverage report -m`` will now say ``->exit``
119   for missed branches to the exit of a function, rather than a negative number.
120   Fixes `issue 469`_.
122 - ``coverage --help`` and ``coverage --version`` now mention which tracer is
123   installed, to help diagnose problems. The docs mention which features need
124   the C extension. (`issue 479`_)
126 - Officially support PyPy 5.1, which required no changes, just updates to the
127   docs.
129 - The `Coverage.report` function had two parameters with non-None defaults,
130   which have been changed.  `show_missing` used to default to True, but now
131   defaults to None.  If you had been calling `Coverage.report` without
132   specifying `show_missing`, you'll need to explicitly set it to True to keep
133   the same behavior.  `skip_covered` used to default to False. It is now None,
134   which doesn't change the behavior.  This fixes `issue 485`_.
136 - It's never been possible to pass a namespace module to one of the analysis
137   functions, but now at least we raise a more specific error message, rather
138   than getting confused. (`issue 456`_)
140 - The `coverage.process_startup` function now returns the `Coverage` instance
141   it creates, as suggested in `issue 481`_.
143 - Make a small tweak to how we compare threads, to avoid buggy custom
144   comparison code in thread classes. (`issue 245`_)
146 .. _issue 90: https://bitbucket.org/ned/coveragepy/issues/90/lambda-expression-confuses-branch
147 .. _issue 245: https://bitbucket.org/ned/coveragepy/issues/245/change-solution-for-issue-164
148 .. _issue 440: https://bitbucket.org/ned/coveragepy/issues/440/yielded-twisted-failure-marked-as-missed
149 .. _issue 456: https://bitbucket.org/ned/coveragepy/issues/456/coverage-breaks-with-implicit-namespaces
150 .. _issue 460: https://bitbucket.org/ned/coveragepy/issues/460/confusing-html-report-for-certain-partial
151 .. _issue 469: https://bitbucket.org/ned/coveragepy/issues/469/strange-1-line-number-in-branch-coverage
152 .. _issue 472: https://bitbucket.org/ned/coveragepy/issues/472/html-report-indents-incorrectly-for-one
153 .. _issue 475: https://bitbucket.org/ned/coveragepy/issues/475/generator-expression-is-marked-as-not
154 .. _issue 479: https://bitbucket.org/ned/coveragepy/issues/479/clarify-the-need-for-the-c-extension
155 .. _issue 481: https://bitbucket.org/ned/coveragepy/issues/481/asyncioprocesspoolexecutor-tracing-not
156 .. _issue 485: https://bitbucket.org/ned/coveragepy/issues/485/coveragereport-ignores-show_missing-and
159 Version 4.1b2 --- 2016-01-23
160 ----------------------------
162 - Problems with the new branch measurement in 4.1 beta 1 were fixed:
164   - Class docstrings were considered executable.  Now they no longer are.
166   - ``yield from`` and ``await`` were considered returns from functions, since
167     they could tranfer control to the caller.  This produced unhelpful "missing
168     branch" reports in a number of circumstances.  Now they no longer are
169     considered returns.
171   - In unusual situations, a missing branch to a negative number was reported.
172     This has been fixed, closing `issue 466`_.
174 - The XML report now produces correct package names for modules found in
175   directories specified with ``source=``.  Fixes `issue 465`_.
177 - ``coverage report`` won't produce trailing whitespace.
179 .. _issue 465: https://bitbucket.org/ned/coveragepy/issues/465/coveragexml-produces-package-names-with-an
180 .. _issue 466: https://bitbucket.org/ned/coveragepy/issues/466/impossible-missed-branch-to-a-negative
183 Version 4.1b1 --- 2016-01-10
184 ----------------------------
186 - Branch analysis has been rewritten: it used to be based on bytecode, but now
187   uses AST analysis.  This has changed a number of things:
189   - More code paths are now considered runnable, especially in
190     ``try``/``except`` structures.  This may mean that coverage.py will
191     identify more code paths as uncovered.  This could either raise or lower
192     your overall coverage number.
194   - Python 3.5's ``async`` and ``await`` keywords are properly supported,
195     fixing `issue 434`_.
197   - Some long-standing branch coverage bugs were fixed:
199     - `issue 129`_: functions with only a docstring for a body would
200       incorrectly report a missing branch on the ``def`` line.
202     - `issue 212`_: code in an ``except`` block could be incorrectly marked as
203       a missing branch.
205     - `issue 146`_: context managers (``with`` statements) in a loop or ``try``
206       block could confuse the branch measurement, reporting incorrect partial
207       branches.
209     - `issue 422`_: in Python 3.5, an actual partial branch could be marked as
210       complete.
212 - Pragmas to disable coverage measurement can now be used on decorator lines,
213   and they will apply to the entire function or class being decorated.  This
214   implements the feature requested in `issue 131`_.
216 - Multiprocessing support is now available on Windows.  Thanks, Rodrigue
217   Cloutier.
219 - Files with two encoding declarations are properly supported, fixing
220   `issue 453`_. Thanks, Max Linke.
222 - Non-ascii characters in regexes in the configuration file worked in 3.7, but
223   stopped working in 4.0.  Now they work again, closing `issue 455`_.
225 - Form-feed characters would prevent accurate determination of the beginning of
226   statements in the rest of the file.  This is now fixed, closing `issue 461`_.
228 .. _issue 129: https://bitbucket.org/ned/coveragepy/issues/129/misleading-branch-coverage-of-empty
229 .. _issue 131: https://bitbucket.org/ned/coveragepy/issues/131/pragma-on-a-decorator-line-should-affect
230 .. _issue 146: https://bitbucket.org/ned/coveragepy/issues/146/context-managers-confuse-branch-coverage
231 .. _issue 212: https://bitbucket.org/ned/coveragepy/issues/212/coverage-erroneously-reports-partial
232 .. _issue 422: https://bitbucket.org/ned/coveragepy/issues/422/python35-partial-branch-marked-as-fully
233 .. _issue 434: https://bitbucket.org/ned/coveragepy/issues/434/indexerror-in-python-35
234 .. _issue 453: https://bitbucket.org/ned/coveragepy/issues/453/source-code-encoding-can-only-be-specified
235 .. _issue 455: https://bitbucket.org/ned/coveragepy/issues/455/unusual-exclusions-stopped-working-in
236 .. _issue 461: https://bitbucket.org/ned/coveragepy/issues/461/multiline-asserts-need-too-many-pragma
239 Version 4.0.3 --- 2015-11-24
240 ----------------------------
242 - Fixed a mysterious problem that manifested in different ways: sometimes
243   hanging the process (`issue 420`_), sometimes making database connections
244   fail (`issue 445`_).
246 - The XML report now has correct ``<source>`` elements when using a
247   ``--source=`` option somewhere besides the current directory.  This fixes
248   `issue 439`_. Thanks, Arcady Ivanov.
250 - Fixed an unusual edge case of detecting source encodings, described in
251   `issue 443`_.
253 - Help messages that mention the command to use now properly use the actual
254   command name, which might be different than "coverage".  Thanks to Ben
255   Finney, this closes `issue 438`_.
257 .. _issue 420: https://bitbucket.org/ned/coveragepy/issues/420/coverage-40-hangs-indefinitely-on-python27
258 .. _issue 438: https://bitbucket.org/ned/coveragepy/issues/438/parameterise-coverage-command-name
259 .. _issue 439: https://bitbucket.org/ned/coveragepy/issues/439/incorrect-cobertura-file-sources-generated
260 .. _issue 443: https://bitbucket.org/ned/coveragepy/issues/443/coverage-gets-confused-when-encoding
261 .. _issue 445: https://bitbucket.org/ned/coveragepy/issues/445/django-app-cannot-connect-to-cassandra
264 Version 4.0.2 --- 2015-11-04
265 ----------------------------
267 - More work on supporting unusually encoded source. Fixed `issue 431`_.
269 - Files or directories with non-ASCII characters are now handled properly,
270   fixing `issue 432`_.
272 - Setting a trace function with sys.settrace was broken by a change in 4.0.1,
273   as reported in `issue 436`_.  This is now fixed.
275 - Officially support PyPy 4.0, which required no changes, just updates to the
276   docs.
278 .. _issue 431: https://bitbucket.org/ned/coveragepy/issues/431/couldnt-parse-python-file-with-cp1252
279 .. _issue 432: https://bitbucket.org/ned/coveragepy/issues/432/path-with-unicode-characters-various
280 .. _issue 436: https://bitbucket.org/ned/coveragepy/issues/436/disabled-coverage-ctracer-may-rise-from
283 Version 4.0.1 --- 2015-10-13
284 ----------------------------
286 - When combining data files, unreadable files will now generate a warning
287   instead of failing the command.  This is more in line with the older
288   coverage.py v3.7.1 behavior, which silently ignored unreadable files.
289   Prompted by `issue 418`_.
291 - The --skip-covered option would skip reporting on 100% covered files, but
292   also skipped them when calculating total coverage.  This was wrong, it should
293   only remove lines from the report, not change the final answer.  This is now
294   fixed, closing `issue 423`_.
296 - In 4.0, the data file recorded a summary of the system on which it was run.
297   Combined data files would keep all of those summaries.  This could lead to
298   enormous data files consisting of mostly repetitive useless information. That
299   summary is now gone, fixing `issue 415`_.  If you want summary information,
300   get in touch, and we'll figure out a better way to do it.
302 - Test suites that mocked os.path.exists would experience strange failures, due
303   to coverage.py using their mock inadvertently.  This is now fixed, closing
304   `issue 416`_.
306 - Importing a ``__init__`` module explicitly would lead to an error:
307   ``AttributeError: 'module' object has no attribute '__path__'``, as reported
308   in `issue 410`_.  This is now fixed.
310 - Code that uses ``sys.settrace(sys.gettrace())`` used to incur a more than 2x
311   speed penalty.  Now there's no penalty at all. Fixes `issue 397`_.
313 - Pyexpat C code will no longer be recorded as a source file, fixing
314   `issue 419`_.
316 - The source kit now contains all of the files needed to have a complete source
317   tree, re-fixing `issue 137`_ and closing `issue 281`_.
319 .. _issue 281: https://bitbucket.org/ned/coveragepy/issues/281/supply-scripts-for-testing-in-the
320 .. _issue 397: https://bitbucket.org/ned/coveragepy/issues/397/stopping-and-resuming-coverage-with
321 .. _issue 410: https://bitbucket.org/ned/coveragepy/issues/410/attributeerror-module-object-has-no
322 .. _issue 415: https://bitbucket.org/ned/coveragepy/issues/415/repeated-coveragedataupdates-cause
323 .. _issue 416: https://bitbucket.org/ned/coveragepy/issues/416/mocking-ospathexists-causes-failures
324 .. _issue 418: https://bitbucket.org/ned/coveragepy/issues/418/json-parse-error
325 .. _issue 419: https://bitbucket.org/ned/coveragepy/issues/419/nosource-no-source-for-code-path-to-c
326 .. _issue 423: https://bitbucket.org/ned/coveragepy/issues/423/skip_covered-changes-reported-total
329 Version 4.0 --- 2015-09-20
330 --------------------------
332 No changes from 4.0b3
335 Version 4.0b3 --- 2015-09-07
336 ----------------------------
338 - Reporting on an unmeasured file would fail with a traceback.  This is now
339   fixed, closing `issue 403`_.
341 - The Jenkins ShiningPanda plugin looks for an obsolete file name to find the
342   HTML reports to publish, so it was failing under coverage.py 4.0.  Now we
343   create that file if we are running under Jenkins, to keep things working
344   smoothly. `issue 404`_.
346 - Kits used to include tests and docs, but didn't install them anywhere, or
347   provide all of the supporting tools to make them useful.  Kits no longer
348   include tests and docs.  If you were using them from the older packages, get
349   in touch and help me understand how.
351 .. _issue 403: https://bitbucket.org/ned/coveragepy/issues/403/hasherupdate-fails-with-typeerror-nonetype
352 .. _issue 404: https://bitbucket.org/ned/coveragepy/issues/404/shiningpanda-jenkins-plugin-cant-find-html
356 Version 4.0b2 --- 2015-08-22
357 ----------------------------
359 - 4.0b1 broke ``--append`` creating new data files.  This is now fixed, closing
360   `issue 392`_.
362 - ``py.test --cov`` can write empty data, then touch files due to ``--source``,
363   which made coverage.py mistakenly force the data file to record lines instead
364   of arcs.  This would lead to a "Can't combine line data with arc data" error
365   message.  This is now fixed, and changed some method names in the
366   CoverageData interface.  Fixes `issue 399`_.
368 - `CoverageData.read_fileobj` and `CoverageData.write_fileobj` replace the
369   `.read` and `.write` methods, and are now properly inverses of each other.
371 - When using ``report --skip-covered``, a message will now be included in the
372   report output indicating how many files were skipped, and if all files are
373   skipped, coverage.py won't accidentally scold you for having no data to
374   report.  Thanks, Krystian Kichewko.
376 - A new conversion utility has been added:  ``python -m coverage.pickle2json``
377   will convert v3.x pickle data files to v4.x JSON data files.  Thanks,
378   Alexander Todorov.  Closes `issue 395`_.
380 - A new version identifier is available, `coverage.version_info`, a plain tuple
381   of values similar to `sys.version_info`_.
383 .. _issue 392: https://bitbucket.org/ned/coveragepy/issues/392/run-append-doesnt-create-coverage-file
384 .. _issue 395: https://bitbucket.org/ned/coveragepy/issues/395/rfe-read-pickled-files-as-well-for
385 .. _issue 399: https://bitbucket.org/ned/coveragepy/issues/399/coverageexception-cant-combine-line-data
386 .. _sys.version_info: https://docs.python.org/3/library/sys.html#sys.version_info
389 Version 4.0b1 --- 2015-08-02
390 ----------------------------
392 - Coverage.py is now licensed under the Apache 2.0 license.  See NOTICE.txt for
393   details.  Closes `issue 313`_.
395 - The data storage has been completely revamped.  The data file is now
396   JSON-based instead of a pickle, closing `issue 236`_.  The `CoverageData`
397   class is now a public supported documented API to the data file.
399 - A new configuration option, ``[run] note``, lets you set a note that will be
400   stored in the `runs` section of the data file.  You can use this to annotate
401   the data file with any information you like.
403 - Unrecognized configuration options will now print an error message and stop
404   coverage.py.  This should help prevent configuration mistakes from passing
405   silently.  Finishes `issue 386`_.
407 - In parallel mode, ``coverage erase`` will now delete all of the data files,
408   fixing `issue 262`_.
410 - Coverage.py now accepts a directory name for ``coverage run`` and will run a
411   ``__main__.py`` found there, just like Python will.  Fixes `issue 252`_.
412   Thanks, Dmitry Trofimov.
414 - The XML report now includes a ``missing-branches`` attribute.  Thanks, Steve
415   Peak.  This is not a part of the Cobertura DTD, so the XML report no longer
416   references the DTD.
418 - Missing branches in the HTML report now have a bit more information in the
419   right-hand annotations.  Hopefully this will make their meaning clearer.
421 - All the reporting functions now behave the same if no data had been
422   collected, exiting with a status code of 1.  Fixed ``fail_under`` to be
423   applied even when the report is empty.  Thanks, Ionel Cristian Mărieș.
425 - Plugins are now initialized differently.  Instead of looking for a class
426   called ``Plugin``, coverage.py looks for a function called ``coverage_init``.
428 - A file-tracing plugin can now ask to have built-in Python reporting by
429   returning `"python"` from its `file_reporter()` method.
431 - Code that was executed with `exec` would be mis-attributed to the file that
432   called it.  This is now fixed, closing `issue 380`_.
434 - The ability to use item access on `Coverage.config` (introduced in 4.0a2) has
435   been changed to a more explicit `Coverage.get_option` and
436   `Coverage.set_option` API.
438 - The ``Coverage.use_cache`` method is no longer supported.
440 - The private method ``Coverage._harvest_data`` is now called
441   ``Coverage.get_data``, and returns the ``CoverageData`` containing the
442   collected data.
444 - The project is consistently referred to as "coverage.py" throughout the code
445   and the documentation, closing `issue 275`_.
447 - Combining data files with an explicit configuration file was broken in 4.0a6,
448   but now works again, closing `issue 385`_.
450 - ``coverage combine`` now accepts files as well as directories.
452 - The speed is back to 3.7.1 levels, after having slowed down due to plugin
453   support, finishing up `issue 387`_.
455 .. _issue 236: https://bitbucket.org/ned/coveragepy/issues/236/pickles-are-bad-and-you-should-feel-bad
456 .. _issue 252: https://bitbucket.org/ned/coveragepy/issues/252/coverage-wont-run-a-program-with
457 .. _issue 262: https://bitbucket.org/ned/coveragepy/issues/262/when-parallel-true-erase-should-erase-all
458 .. _issue 275: https://bitbucket.org/ned/coveragepy/issues/275/refer-consistently-to-project-as-coverage
459 .. _issue 313: https://bitbucket.org/ned/coveragepy/issues/313/add-license-file-containing-2-3-or-4
460 .. _issue 380: https://bitbucket.org/ned/coveragepy/issues/380/code-executed-by-exec-excluded-from
461 .. _issue 385: https://bitbucket.org/ned/coveragepy/issues/385/coverage-combine-doesnt-work-with-rcfile
462 .. _issue 386: https://bitbucket.org/ned/coveragepy/issues/386/error-on-unrecognised-configuration
463 .. _issue 387: https://bitbucket.org/ned/coveragepy/issues/387/performance-degradation-from-371-to-40
465 .. 40 issues closed in 4.0 below here
468 Version 4.0a6 --- 2015-06-21
469 ----------------------------
471 - Python 3.5b2 and PyPy 2.6.0 are supported.
473 - The original module-level function interface to coverage.py is no longer
474   supported.  You must now create a ``coverage.Coverage`` object, and use
475   methods on it.
477 - The ``coverage combine`` command now accepts any number of directories as
478   arguments, and will combine all the data files from those directories.  This
479   means you don't have to copy the files to one directory before combining.
480   Thanks, Christine Lytwynec.  Finishes `issue 354`_.
482 - Branch coverage couldn't properly handle certain extremely long files. This
483   is now fixed (`issue 359`_).
485 - Branch coverage didn't understand yield statements properly.  Mickie Betz
486   persisted in pursuing this despite Ned's pessimism.  Fixes `issue 308`_ and
487   `issue 324`_.
489 - The COVERAGE_DEBUG environment variable can be used to set the ``[run] debug``
490   configuration option to control what internal operations are logged.
492 - HTML reports were truncated at formfeed characters.  This is now fixed
493   (`issue 360`_).  It's always fun when the problem is due to a `bug in the
494   Python standard library <http://bugs.python.org/issue19035>`_.
496 - Files with incorrect encoding declaration comments are no longer ignored by
497   the reporting commands, fixing `issue 351`_.
499 - HTML reports now include a timestamp in the footer, closing `issue 299`_.
500   Thanks, Conrad Ho.
502 - HTML reports now begrudgingly use double-quotes rather than single quotes,
503   because there are "software engineers" out there writing tools that read HTML
504   and somehow have no idea that single quotes exist.  Capitulates to the absurd
505   `issue 361`_.  Thanks, Jon Chappell.
507 - The ``coverage annotate`` command now handles non-ASCII characters properly,
508   closing `issue 363`_.  Thanks, Leonardo Pistone.
510 - Drive letters on Windows were not normalized correctly, now they are. Thanks,
511   Ionel Cristian Mărieș.
513 - Plugin support had some bugs fixed, closing `issue 374`_ and `issue 375`_.
514   Thanks, Stefan Behnel.
516 .. _issue 299: https://bitbucket.org/ned/coveragepy/issue/299/inserted-created-on-yyyy-mm-dd-hh-mm-in
517 .. _issue 308: https://bitbucket.org/ned/coveragepy/issue/308/yield-lambda-branch-coverage
518 .. _issue 324: https://bitbucket.org/ned/coveragepy/issue/324/yield-in-loop-confuses-branch-coverage
519 .. _issue 351: https://bitbucket.org/ned/coveragepy/issue/351/files-with-incorrect-encoding-are-ignored
520 .. _issue 354: https://bitbucket.org/ned/coveragepy/issue/354/coverage-combine-should-take-a-list-of
521 .. _issue 359: https://bitbucket.org/ned/coveragepy/issue/359/xml-report-chunk-error
522 .. _issue 360: https://bitbucket.org/ned/coveragepy/issue/360/html-reports-get-confused-by-l-in-the-code
523 .. _issue 361: https://bitbucket.org/ned/coveragepy/issue/361/use-double-quotes-in-html-output-to
524 .. _issue 363: https://bitbucket.org/ned/coveragepy/issue/363/annotate-command-hits-unicode-happy-fun
525 .. _issue 374: https://bitbucket.org/ned/coveragepy/issue/374/c-tracer-lookups-fail-in
526 .. _issue 375: https://bitbucket.org/ned/coveragepy/issue/375/ctracer_handle_return-reads-byte-code
529 Version 4.0a5 --- 2015-02-16
530 ----------------------------
532 - Plugin support is now implemented in the C tracer instead of the Python
533   tracer. This greatly improves the speed of tracing projects using plugins.
535 - Coverage.py now always adds the current directory to sys.path, so that
536   plugins can import files in the current directory (`issue 358`_).
538 - If the `config_file` argument to the Coverage constructor is specified as
539   ".coveragerc", it is treated as if it were True.  This means setup.cfg is
540   also examined, and a missing file is not considered an error (`issue 357`_).
542 - Wildly experimental: support for measuring processes started by the
543   multiprocessing module.  To use, set ``--concurrency=multiprocessing``,
544   either on the command line or in the .coveragerc file (`issue 117`_). Thanks,
545   Eduardo Schettino.  Currently, this does not work on Windows.
547 - A new warning is possible, if a desired file isn't measured because it was
548   imported before coverage.py was started (`issue 353`_).
550 - The `coverage.process_startup` function now will start coverage measurement
551   only once, no matter how many times it is called.  This fixes problems due
552   to unusual virtualenv configurations (`issue 340`_).
554 - Added 3.5.0a1 to the list of supported CPython versions.
556 .. _issue 117: https://bitbucket.org/ned/coveragepy/issue/117/enable-coverage-measurement-of-code-run-by
557 .. _issue 340: https://bitbucket.org/ned/coveragepy/issue/340/keyerror-subpy
558 .. _issue 353: https://bitbucket.org/ned/coveragepy/issue/353/40a3-introduces-an-unexpected-third-case
559 .. _issue 357: https://bitbucket.org/ned/coveragepy/issue/357/behavior-changed-when-coveragerc-is
560 .. _issue 358: https://bitbucket.org/ned/coveragepy/issue/358/all-coverage-commands-should-adjust
563 Version 4.0a4 --- 2015-01-25
564 ----------------------------
566 - Plugins can now provide sys_info for debugging output.
568 - Started plugins documentation.
570 - Prepared to move the docs to readthedocs.org.
573 Version 4.0a3 --- 2015-01-20
574 ----------------------------
576 - Reports now use file names with extensions.  Previously, a report would
577   describe a/b/c.py as "a/b/c".  Now it is shown as "a/b/c.py".  This allows
578   for better support of non-Python files, and also fixed `issue 69`_.
580 - The XML report now reports each directory as a package again.  This was a bad
581   regression, I apologize.  This was reported in `issue 235`_, which is now
582   fixed.
584 - A new configuration option for the XML report: ``[xml] package_depth``
585   controls which directories are identified as packages in the report.
586   Directories deeper than this depth are not reported as packages.
587   The default is that all directories are reported as packages.
588   Thanks, Lex Berezhny.
590 - When looking for the source for a frame, check if the file exists. On
591   Windows, .pyw files are no longer recorded as .py files. Along the way, this
592   fixed `issue 290`_.
594 - Empty files are now reported as 100% covered in the XML report, not 0%
595   covered (`issue 345`_).
597 - Regexes in the configuration file are now compiled as soon as they are read,
598   to provide error messages earlier (`issue 349`_).
600 .. _issue 69: https://bitbucket.org/ned/coveragepy/issue/69/coverage-html-overwrite-files-that-doesnt
601 .. _issue 235: https://bitbucket.org/ned/coveragepy/issue/235/package-name-is-missing-in-xml-report
602 .. _issue 290: https://bitbucket.org/ned/coveragepy/issue/290/running-programmatically-with-pyw-files
603 .. _issue 345: https://bitbucket.org/ned/coveragepy/issue/345/xml-reports-line-rate-0-for-empty-files
604 .. _issue 349: https://bitbucket.org/ned/coveragepy/issue/349/bad-regex-in-config-should-get-an-earlier
607 Version 4.0a2 --- 2015-01-14
608 ----------------------------
610 - Officially support PyPy 2.4, and PyPy3 2.4.  Drop support for
611   CPython 3.2 and older versions of PyPy.  The code won't work on CPython 3.2.
612   It will probably still work on older versions of PyPy, but I'm not testing
613   against them.
615 - Plugins!
617 - The original command line switches (`-x` to run a program, etc) are no
618   longer supported.
620 - A new option: `coverage report --skip-covered` will reduce the number of
621   files reported by skipping files with 100% coverage.  Thanks, Krystian
622   Kichewko.  This means that empty `__init__.py` files will be skipped, since
623   they are 100% covered, closing `issue 315`_.
625 - You can now specify the ``--fail-under`` option in the ``.coveragerc`` file
626   as the ``[report] fail_under`` option.  This closes `issue 314`_.
628 - The ``COVERAGE_OPTIONS`` environment variable is no longer supported.  It was
629   a hack for ``--timid`` before configuration files were available.
631 - The HTML report now has filtering.  Type text into the Filter box on the
632   index page, and only modules with that text in the name will be shown.
633   Thanks, Danny Allen.
635 - The textual report and the HTML report used to report partial branches
636   differently for no good reason.  Now the text report's "missing branches"
637   column is a "partial branches" column so that both reports show the same
638   numbers.  This closes `issue 342`_.
640 - If you specify a ``--rcfile`` that cannot be read, you will get an error
641   message.  Fixes `issue 343`_.
643 - The ``--debug`` switch can now be used on any command.
645 - You can now programmatically adjust the configuration of coverage.py by
646   setting items on `Coverage.config` after construction.
648 - A module run with ``-m`` can be used as the argument to ``--source``, fixing
649   `issue 328`_.  Thanks, Buck Evan.
651 - The regex for matching exclusion pragmas has been fixed to allow more kinds
652   of whitespace, fixing `issue 334`_.
654 - Made some PyPy-specific tweaks to improve speed under PyPy.  Thanks, Alex
655   Gaynor.
657 - In some cases, with a source file missing a final newline, coverage.py would
658   count statements incorrectly.  This is now fixed, closing `issue 293`_.
660 - The status.dat file that HTML reports use to avoid re-creating files that
661   haven't changed is now a JSON file instead of a pickle file.  This obviates
662   `issue 287`_ and `issue 237`_.
664 .. _issue 237: https://bitbucket.org/ned/coveragepy/issue/237/htmlcov-with-corrupt-statusdat
665 .. _issue 287: https://bitbucket.org/ned/coveragepy/issue/287/htmlpy-doesnt-specify-pickle-protocol
666 .. _issue 293: https://bitbucket.org/ned/coveragepy/issue/293/number-of-statement-detection-wrong-if-no
667 .. _issue 314: https://bitbucket.org/ned/coveragepy/issue/314/fail_under-param-not-working-in-coveragerc
668 .. _issue 315: https://bitbucket.org/ned/coveragepy/issue/315/option-to-omit-empty-files-eg-__init__py
669 .. _issue 328: https://bitbucket.org/ned/coveragepy/issue/328/misbehavior-in-run-source
670 .. _issue 334: https://bitbucket.org/ned/coveragepy/issue/334/pragma-not-recognized-if-tab-character
671 .. _issue 342: https://bitbucket.org/ned/coveragepy/issue/342/console-and-html-coverage-reports-differ
672 .. _issue 343: https://bitbucket.org/ned/coveragepy/issue/343/an-explicitly-named-non-existent-config
675 Version 4.0a1 --- 2014-09-27
676 ----------------------------
678 - Python versions supported are now CPython 2.6, 2.7, 3.2, 3.3, and 3.4, and
679   PyPy 2.2.
681 - Gevent, eventlet, and greenlet are now supported, closing `issue 149`_.
682   The ``concurrency`` setting specifies the concurrency library in use.  Huge
683   thanks to Peter Portante for initial implementation, and to Joe Jevnik for
684   the final insight that completed the work.
686 - Options are now also read from a setup.cfg file, if any.  Sections are
687   prefixed with "coverage:", so the ``[run]`` options will be read from the
688   ``[coverage:run]`` section of setup.cfg.  Finishes `issue 304`_.
690 - The ``report -m`` command can now show missing branches when reporting on
691   branch coverage.  Thanks, Steve Leonard. Closes `issue 230`_.
693 - The XML report now contains a <source> element, fixing `issue 94`_.  Thanks
694   Stan Hu.
696 - The class defined in the coverage module is now called ``Coverage`` instead
697   of ``coverage``, though the old name still works, for backward compatibility.
699 - The ``fail-under`` value is now rounded the same as reported results,
700   preventing paradoxical results, fixing `issue 284`_.
702 - The XML report will now create the output directory if need be, fixing
703   `issue 285`_.  Thanks, Chris Rose.
705 - HTML reports no longer raise UnicodeDecodeError if a Python file has
706   undecodable characters, fixing `issue 303`_ and `issue 331`_.
708 - The annotate command will now annotate all files, not just ones relative to
709   the current directory, fixing `issue 57`_.
711 - The coverage module no longer causes deprecation warnings on Python 3.4 by
712   importing the imp module, fixing `issue 305`_.
714 - Encoding declarations in source files are only considered if they are truly
715   comments.  Thanks, Anthony Sottile.
717 .. _issue 57: https://bitbucket.org/ned/coveragepy/issue/57/annotate-command-fails-to-annotate-many
718 .. _issue 94: https://bitbucket.org/ned/coveragepy/issue/94/coverage-xml-doesnt-produce-sources
719 .. _issue 149: https://bitbucket.org/ned/coveragepy/issue/149/coverage-gevent-looks-broken
720 .. _issue 230: https://bitbucket.org/ned/coveragepy/issue/230/show-line-no-for-missing-branches-in
721 .. _issue 284: https://bitbucket.org/ned/coveragepy/issue/284/fail-under-should-show-more-precision
722 .. _issue 285: https://bitbucket.org/ned/coveragepy/issue/285/xml-report-fails-if-output-file-directory
723 .. _issue 303: https://bitbucket.org/ned/coveragepy/issue/303/unicodedecodeerror
724 .. _issue 304: https://bitbucket.org/ned/coveragepy/issue/304/attempt-to-get-configuration-from-setupcfg
725 .. _issue 305: https://bitbucket.org/ned/coveragepy/issue/305/pendingdeprecationwarning-the-imp-module
726 .. _issue 331: https://bitbucket.org/ned/coveragepy/issue/331/failure-of-encoding-detection-on-python2
729 Version 3.7.1 --- 2013-12-13
730 ----------------------------
732 - Improved the speed of HTML report generation by about 20%.
734 - Fixed the mechanism for finding OS-installed static files for the HTML report
735   so that it will actually find OS-installed static files.
738 Version 3.7 --- 2013-10-06
739 --------------------------
741 - Added the ``--debug`` switch to ``coverage run``.  It accepts a list of
742   options indicating the type of internal activity to log to stderr.
744 - Improved the branch coverage facility, fixing `issue 92`_ and `issue 175`_.
746 - Running code with ``coverage run -m`` now behaves more like Python does,
747   setting sys.path properly, which fixes `issue 207`_ and `issue 242`_.
749 - Coverage.py can now run .pyc files directly, closing `issue 264`_.
751 - Coverage.py properly supports .pyw files, fixing `issue 261`_.
753 - Omitting files within a tree specified with the ``source`` option would
754   cause them to be incorrectly marked as unexecuted, as described in
755   `issue 218`_.  This is now fixed.
757 - When specifying paths to alias together during data combining, you can now
758   specify relative paths, fixing `issue 267`_.
760 - Most file paths can now be specified with username expansion (``~/src``, or
761   ``~build/src``, for example), and with environment variable expansion
762   (``build/$BUILDNUM/src``).
764 - Trying to create an XML report with no files to report on, would cause a
765   ZeroDivideError, but no longer does, fixing `issue 250`_.
767 - When running a threaded program under the Python tracer, coverage.py no
768   longer issues a spurious warning about the trace function changing: "Trace
769   function changed, measurement is likely wrong: None."  This fixes `issue
770   164`_.
772 - Static files necessary for HTML reports are found in system-installed places,
773   to ease OS-level packaging of coverage.py.  Closes `issue 259`_.
775 - Source files with encoding declarations, but a blank first line, were not
776   decoded properly.  Now they are.  Thanks, Roger Hu.
778 - The source kit now includes the ``__main__.py`` file in the root coverage
779   directory, fixing `issue 255`_.
781 .. _issue 92: https://bitbucket.org/ned/coveragepy/issue/92/finally-clauses-arent-treated-properly-in
782 .. _issue 164: https://bitbucket.org/ned/coveragepy/issue/164/trace-function-changed-warning-when-using
783 .. _issue 175: https://bitbucket.org/ned/coveragepy/issue/175/branch-coverage-gets-confused-in-certain
784 .. _issue 207: https://bitbucket.org/ned/coveragepy/issue/207/run-m-cannot-find-module-or-package-in
785 .. _issue 242: https://bitbucket.org/ned/coveragepy/issue/242/running-a-two-level-package-doesnt-work
786 .. _issue 218: https://bitbucket.org/ned/coveragepy/issue/218/run-command-does-not-respect-the-omit-flag
787 .. _issue 250: https://bitbucket.org/ned/coveragepy/issue/250/uncaught-zerodivisionerror-when-generating
788 .. _issue 255: https://bitbucket.org/ned/coveragepy/issue/255/directory-level-__main__py-not-included-in
789 .. _issue 259: https://bitbucket.org/ned/coveragepy/issue/259/allow-use-of-system-installed-third-party
790 .. _issue 261: https://bitbucket.org/ned/coveragepy/issue/261/pyw-files-arent-reported-properly
791 .. _issue 264: https://bitbucket.org/ned/coveragepy/issue/264/coverage-wont-run-pyc-files
792 .. _issue 267: https://bitbucket.org/ned/coveragepy/issue/267/relative-path-aliases-dont-work
795 Version 3.6 --- 2013-01-05
796 --------------------------
798 - Added a page to the docs about troublesome situations, closing `issue 226`_,
799   and added some info to the TODO file, closing `issue 227`_.
801 .. _issue 226: https://bitbucket.org/ned/coveragepy/issue/226/make-readme-section-to-describe-when
802 .. _issue 227: https://bitbucket.org/ned/coveragepy/issue/227/update-todo
805 Version 3.6b3 --- 2012-12-29
806 ----------------------------
808 - Beta 2 broke the nose plugin. It's fixed again, closing `issue 224`_.
810 .. _issue 224: https://bitbucket.org/ned/coveragepy/issue/224/36b2-breaks-nosexcover
813 Version 3.6b2 --- 2012-12-23
814 ----------------------------
816 - Coverage.py runs on Python 2.3 and 2.4 again. It was broken in 3.6b1.
818 - The C extension is optionally compiled using a different more widely-used
819   technique, taking another stab at fixing `issue 80`_ once and for all.
821 - Combining data files would create entries for phantom files if used with
822   ``source`` and path aliases.  It no longer does.
824 - ``debug sys`` now shows the configuration file path that was read.
826 - If an oddly-behaved package claims that code came from an empty-string
827   file name, coverage.py no longer associates it with the directory name,
828   fixing `issue 221`_.
830 .. _issue 221: https://bitbucket.org/ned/coveragepy/issue/221/coveragepy-incompatible-with-pyratemp
833 Version 3.6b1 --- 2012-11-28
834 ----------------------------
836 - Wildcards in ``include=`` and ``omit=`` arguments were not handled properly
837   in reporting functions, though they were when running.  Now they are handled
838   uniformly, closing `issue 143`_ and `issue 163`_.  **NOTE**: it is possible
839   that your configurations may now be incorrect.  If you use ``include`` or
840   ``omit`` during reporting, whether on the command line, through the API, or
841   in a configuration file, please check carefully that you were not relying on
842   the old broken behavior.
844 - The **report**, **html**, and **xml** commands now accept a ``--fail-under``
845   switch that indicates in the exit status whether the coverage percentage was
846   less than a particular value.  Closes `issue 139`_.
848 - The reporting functions coverage.report(), coverage.html_report(), and
849   coverage.xml_report() now all return a float, the total percentage covered
850   measurement.
852 - The HTML report's title can now be set in the configuration file, with the
853   ``--title`` switch on the command line, or via the API.
855 - Configuration files now support substitution of environment variables, using
856   syntax like ``${WORD}``.  Closes `issue 97`_.
858 - Embarrassingly, the ``[xml] output=`` setting in the .coveragerc file simply
859   didn't work.  Now it does.
861 - The XML report now consistently uses file names for the file name attribute,
862   rather than sometimes using module names.  Fixes `issue 67`_.
863   Thanks, Marcus Cobden.
865 - Coverage percentage metrics are now computed slightly differently under
866   branch coverage.  This means that completely unexecuted files will now
867   correctly have 0% coverage, fixing `issue 156`_.  This also means that your
868   total coverage numbers will generally now be lower if you are measuring
869   branch coverage.
871 - When installing, now in addition to creating a "coverage" command, two new
872   aliases are also installed.  A "coverage2" or "coverage3" command will be
873   created, depending on whether you are installing in Python 2.x or 3.x.
874   A "coverage-X.Y" command will also be created corresponding to your specific
875   version of Python.  Closes `issue 111`_.
877 - The coverage.py installer no longer tries to bootstrap setuptools or
878   Distribute.  You must have one of them installed first, as `issue 202`_
879   recommended.
881 - The coverage.py kit now includes docs (closing `issue 137`_) and tests.
883 - On Windows, files are now reported in their correct case, fixing `issue 89`_
884   and `issue 203`_.
886 - If a file is missing during reporting, the path shown in the error message
887   is now correct, rather than an incorrect path in the current directory.
888   Fixes `issue 60`_.
890 - Running an HTML report in Python 3 in the same directory as an old Python 2
891   HTML report would fail with a UnicodeDecodeError. This issue (`issue 193`_)
892   is now fixed.
894 - Fixed yet another error trying to parse non-Python files as Python, this
895   time an IndentationError, closing `issue 82`_ for the fourth time...
897 - If `coverage xml` fails because there is no data to report, it used to
898   create a zero-length XML file.  Now it doesn't, fixing `issue 210`_.
900 - Jython files now work with the ``--source`` option, fixing `issue 100`_.
902 - Running coverage.py under a debugger is unlikely to work, but it shouldn't
903   fail with "TypeError: 'NoneType' object is not iterable".  Fixes `issue
904   201`_.
906 - On some Linux distributions, when installed with the OS package manager,
907   coverage.py would report its own code as part of the results.  Now it won't,
908   fixing `issue 214`_, though this will take some time to be repackaged by the
909   operating systems.
911 - Docstrings for the legacy singleton methods are more helpful.  Thanks Marius
912   Gedminas.  Closes `issue 205`_.
914 - The pydoc tool can now show documentation for the class `coverage.coverage`.
915   Closes `issue 206`_.
917 - Added a page to the docs about contributing to coverage.py, closing
918   `issue 171`_.
920 - When coverage.py ended unsuccessfully, it may have reported odd errors like
921   ``'NoneType' object has no attribute 'isabs'``.  It no longer does,
922   so kiss `issue 153`_ goodbye.
924 .. _issue 60: https://bitbucket.org/ned/coveragepy/issue/60/incorrect-path-to-orphaned-pyc-files
925 .. _issue 67: https://bitbucket.org/ned/coveragepy/issue/67/xml-report-filenames-may-be-generated
926 .. _issue 89: https://bitbucket.org/ned/coveragepy/issue/89/on-windows-all-packages-are-reported-in
927 .. _issue 97: https://bitbucket.org/ned/coveragepy/issue/97/allow-environment-variables-to-be
928 .. _issue 100: https://bitbucket.org/ned/coveragepy/issue/100/source-directive-doesnt-work-for-packages
929 .. _issue 111: https://bitbucket.org/ned/coveragepy/issue/111/when-installing-coverage-with-pip-not
930 .. _issue 137: https://bitbucket.org/ned/coveragepy/issue/137/provide-docs-with-source-distribution
931 .. _issue 139: https://bitbucket.org/ned/coveragepy/issue/139/easy-check-for-a-certain-coverage-in-tests
932 .. _issue 143: https://bitbucket.org/ned/coveragepy/issue/143/omit-doesnt-seem-to-work-in-coverage
933 .. _issue 153: https://bitbucket.org/ned/coveragepy/issue/153/non-existent-filename-triggers
934 .. _issue 156: https://bitbucket.org/ned/coveragepy/issue/156/a-completely-unexecuted-file-shows-14
935 .. _issue 163: https://bitbucket.org/ned/coveragepy/issue/163/problem-with-include-and-omit-filename
936 .. _issue 171: https://bitbucket.org/ned/coveragepy/issue/171/how-to-contribute-and-run-tests
937 .. _issue 193: https://bitbucket.org/ned/coveragepy/issue/193/unicodedecodeerror-on-htmlpy
938 .. _issue 201: https://bitbucket.org/ned/coveragepy/issue/201/coverage-using-django-14-with-pydb-on
939 .. _issue 202: https://bitbucket.org/ned/coveragepy/issue/202/get-rid-of-ez_setuppy-and
940 .. _issue 203: https://bitbucket.org/ned/coveragepy/issue/203/duplicate-filenames-reported-when-filename
941 .. _issue 205: https://bitbucket.org/ned/coveragepy/issue/205/make-pydoc-coverage-more-friendly
942 .. _issue 206: https://bitbucket.org/ned/coveragepy/issue/206/pydoc-coveragecoverage-fails-with-an-error
943 .. _issue 210: https://bitbucket.org/ned/coveragepy/issue/210/if-theres-no-coverage-data-coverage-xml
944 .. _issue 214: https://bitbucket.org/ned/coveragepy/issue/214/coveragepy-measures-itself-on-precise
947 Version 3.5.3 --- 2012-09-29
948 ----------------------------
950 - Line numbers in the HTML report line up better with the source lines, fixing
951   `issue 197`_, thanks Marius Gedminas.
953 - When specifying a directory as the source= option, the directory itself no
954   longer needs to have a ``__init__.py`` file, though its sub-directories do,
955   to be considered as source files.
957 - Files encoded as UTF-8 with a BOM are now properly handled, fixing
958   `issue 179`_.  Thanks, Pablo Carballo.
960 - Fixed more cases of non-Python files being reported as Python source, and
961   then not being able to parse them as Python.  Closes `issue 82`_ (again).
962   Thanks, Julian Berman.
964 - Fixed memory leaks under Python 3, thanks, Brett Cannon. Closes `issue 147`_.
966 - Optimized .pyo files may not have been handled correctly, `issue 195`_.
967   Thanks, Marius Gedminas.
969 - Certain unusually named file paths could have been mangled during reporting,
970   `issue 194`_.  Thanks, Marius Gedminas.
972 - Try to do a better job of the impossible task of detecting when we can't
973   build the C extension, fixing `issue 183`_.
975 - Testing is now done with `tox`_, thanks, Marc Abramowitz.
977 .. _issue 147: https://bitbucket.org/ned/coveragepy/issue/147/massive-memory-usage-by-ctracer
978 .. _issue 179: https://bitbucket.org/ned/coveragepy/issue/179/htmlreporter-fails-when-source-file-is
979 .. _issue 183: https://bitbucket.org/ned/coveragepy/issue/183/install-fails-for-python-23
980 .. _issue 194: https://bitbucket.org/ned/coveragepy/issue/194/filelocatorrelative_filename-could-mangle
981 .. _issue 195: https://bitbucket.org/ned/coveragepy/issue/195/pyo-file-handling-in-codeunit
982 .. _issue 197: https://bitbucket.org/ned/coveragepy/issue/197/line-numbers-in-html-report-do-not-align
983 .. _tox: http://tox.readthedocs.org/
986 Version 3.5.2 --- 2012-05-04
987 ----------------------------
989 No changes since 3.5.2.b1
992 Version 3.5.2b1 --- 2012-04-29
993 ------------------------------
995 - The HTML report has slightly tweaked controls: the buttons at the top of
996   the page are color-coded to the source lines they affect.
998 - Custom CSS can be applied to the HTML report by specifying a CSS file as
999   the ``extra_css`` configuration value in the ``[html]`` section.
1001 - Source files with custom encodings declared in a comment at the top are now
1002   properly handled during reporting on Python 2.  Python 3 always handled them
1003   properly.  This fixes `issue 157`_.
1005 - Backup files left behind by editors are no longer collected by the source=
1006   option, fixing `issue 168`_.
1008 - If a file doesn't parse properly as Python, we don't report it as an error
1009   if the file name seems like maybe it wasn't meant to be Python.  This is a
1010   pragmatic fix for `issue 82`_.
1012 - The ``-m`` switch on ``coverage report``, which includes missing line numbers
1013   in the summary report, can now be specified as ``show_missing`` in the
1014   config file.  Closes `issue 173`_.
1016 - When running a module with ``coverage run -m <modulename>``, certain details
1017   of the execution environment weren't the same as for
1018   ``python -m <modulename>``.  This had the unfortunate side-effect of making
1019   ``coverage run -m unittest discover`` not work if you had tests in a
1020   directory named "test".  This fixes `issue 155`_ and `issue 142`_.
1022 - Now the exit status of your product code is properly used as the process
1023   status when running ``python -m coverage run ...``.  Thanks, JT Olds.
1025 - When installing into pypy, we no longer attempt (and fail) to compile
1026   the C tracer function, closing `issue 166`_.
1028 .. _issue 142: https://bitbucket.org/ned/coveragepy/issue/142/executing-python-file-syspath-is-replaced
1029 .. _issue 155: https://bitbucket.org/ned/coveragepy/issue/155/cant-use-coverage-run-m-unittest-discover
1030 .. _issue 157: https://bitbucket.org/ned/coveragepy/issue/157/chokes-on-source-files-with-non-utf-8
1031 .. _issue 166: https://bitbucket.org/ned/coveragepy/issue/166/dont-try-to-compile-c-extension-on-pypy
1032 .. _issue 168: https://bitbucket.org/ned/coveragepy/issue/168/dont-be-alarmed-by-emacs-droppings
1033 .. _issue 173: https://bitbucket.org/ned/coveragepy/issue/173/theres-no-way-to-specify-show-missing-in
1036 Version 3.5.1 --- 2011-09-23
1037 ----------------------------
1039 - The ``[paths]`` feature unfortunately didn't work in real world situations
1040   where you wanted to, you know, report on the combined data.  Now all paths
1041   stored in the combined file are canonicalized properly.
1044 Version 3.5.1b1 --- 2011-08-28
1045 ------------------------------
1047 - When combining data files from parallel runs, you can now instruct
1048   coverage.py about which directories are equivalent on different machines.  A
1049   ``[paths]`` section in the configuration file lists paths that are to be
1050   considered equivalent.  Finishes `issue 17`_.
1052 - for-else constructs are understood better, and don't cause erroneous partial
1053   branch warnings.  Fixes `issue 122`_.
1055 - Branch coverage for ``with`` statements is improved, fixing `issue 128`_.
1057 - The number of partial branches reported on the HTML summary page was
1058   different than the number reported on the individual file pages.  This is
1059   now fixed.
1061 - An explicit include directive to measure files in the Python installation
1062   wouldn't work because of the standard library exclusion.  Now the include
1063   directive takes precedence, and the files will be measured.  Fixes
1064   `issue 138`_.
1066 - The HTML report now handles Unicode characters in Python source files
1067   properly.  This fixes `issue 124`_ and `issue 144`_. Thanks, Devin
1068   Jeanpierre.
1070 - In order to help the core developers measure the test coverage of the
1071   standard library, Brandon Rhodes devised an aggressive hack to trick Python
1072   into running some coverage.py code before anything else in the process.
1073   See the coverage/fullcoverage directory if you are interested.
1075 .. _issue 17: http://bitbucket.org/ned/coveragepy/issue/17/support-combining-coverage-data-from
1076 .. _issue 122: http://bitbucket.org/ned/coveragepy/issue/122/for-else-always-reports-missing-branch
1077 .. _issue 124: http://bitbucket.org/ned/coveragepy/issue/124/no-arbitrary-unicode-in-html-reports-in
1078 .. _issue 128: http://bitbucket.org/ned/coveragepy/issue/128/branch-coverage-of-with-statement-in-27
1079 .. _issue 138: http://bitbucket.org/ned/coveragepy/issue/138/include-should-take-precedence-over-is
1080 .. _issue 144: http://bitbucket.org/ned/coveragepy/issue/144/failure-generating-html-output-for
1083 Version 3.5 --- 2011-06-29
1084 --------------------------
1086 - The HTML report hotkeys now behave slightly differently when the current
1087   chunk isn't visible at all:  a chunk on the screen will be selected,
1088   instead of the old behavior of jumping to the literal next chunk.
1089   The hotkeys now work in Google Chrome.  Thanks, Guido van Rossum.
1092 Version 3.5b1 --- 2011-06-05
1093 ----------------------------
1095 - The HTML report now has hotkeys.  Try ``n``, ``s``, ``m``, ``x``, ``b``,
1096   ``p``, and ``c`` on the overview page to change the column sorting.
1097   On a file page, ``r``, ``m``, ``x``, and ``p`` toggle the run, missing,
1098   excluded, and partial line markings.  You can navigate the highlighted
1099   sections of code by using the ``j`` and ``k`` keys for next and previous.
1100   The ``1`` (one) key jumps to the first highlighted section in the file,
1101   and ``0`` (zero) scrolls to the top of the file.
1103 - The ``--omit`` and ``--include`` switches now interpret their values more
1104   usefully.  If the value starts with a wildcard character, it is used as-is.
1105   If it does not, it is interpreted relative to the current directory.
1106   Closes `issue 121`_.
1108 - Partial branch warnings can now be pragma'd away.  The configuration option
1109   ``partial_branches`` is a list of regular expressions.  Lines matching any of
1110   those expressions will never be marked as a partial branch.  In addition,
1111   there's a built-in list of regular expressions marking statements which should
1112   never be marked as partial.  This list includes ``while True:``, ``while 1:``,
1113   ``if 1:``, and ``if 0:``.
1115 - The ``coverage()`` constructor accepts single strings for the ``omit=`` and
1116   ``include=`` arguments, adapting to a common error in programmatic use.
1118 - Modules can now be run directly using ``coverage run -m modulename``, to
1119   mirror Python's ``-m`` flag.  Closes `issue 95`_, thanks, Brandon Rhodes.
1121 - ``coverage run`` didn't emulate Python accurately in one small detail: the
1122   current directory inserted into ``sys.path`` was relative rather than
1123   absolute. This is now fixed.
1125 - HTML reporting is now incremental: a record is kept of the data that
1126   produced the HTML reports, and only files whose data has changed will
1127   be generated.  This should make most HTML reporting faster.
1129 - Pathological code execution could disable the trace function behind our
1130   backs, leading to incorrect code measurement.  Now if this happens,
1131   coverage.py will issue a warning, at least alerting you to the problem.
1132   Closes `issue 93`_.  Thanks to Marius Gedminas for the idea.
1134 - The C-based trace function now behaves properly when saved and restored
1135   with ``sys.gettrace()`` and ``sys.settrace()``.  This fixes `issue 125`_
1136   and `issue 123`_.  Thanks, Devin Jeanpierre.
1138 - Source files are now opened with Python 3.2's ``tokenize.open()`` where
1139   possible, to get the best handling of Python source files with encodings.
1140   Closes `issue 107`_, thanks, Brett Cannon.
1142 - Syntax errors in supposed Python files can now be ignored during reporting
1143   with the ``-i`` switch just like other source errors.  Closes `issue 115`_.
1145 - Installation from source now succeeds on machines without a C compiler,
1146   closing `issue 80`_.
1148 - Coverage.py can now be run directly from a working tree by specifying
1149   the directory name to python:  ``python coverage_py_working_dir run ...``.
1150   Thanks, Brett Cannon.
1152 - A little bit of Jython support: `coverage run` can now measure Jython
1153   execution by adapting when $py.class files are traced. Thanks, Adi Roiban.
1154   Jython still doesn't provide the Python libraries needed to make
1155   coverage reporting work, unfortunately.
1157 - Internally, files are now closed explicitly, fixing `issue 104`_.  Thanks,
1158   Brett Cannon.
1160 .. _issue 80: https://bitbucket.org/ned/coveragepy/issue/80/is-there-a-duck-typing-way-to-know-we-cant
1161 .. _issue 93: http://bitbucket.org/ned/coveragepy/issue/93/copying-a-mock-object-breaks-coverage
1162 .. _issue 95: https://bitbucket.org/ned/coveragepy/issue/95/run-subcommand-should-take-a-module-name
1163 .. _issue 104: https://bitbucket.org/ned/coveragepy/issue/104/explicitly-close-files
1164 .. _issue 107: https://bitbucket.org/ned/coveragepy/issue/107/codeparser-not-opening-source-files-with
1165 .. _issue 115: https://bitbucket.org/ned/coveragepy/issue/115/fail-gracefully-when-reporting-on-file
1166 .. _issue 121: https://bitbucket.org/ned/coveragepy/issue/121/filename-patterns-are-applied-stupidly
1167 .. _issue 123: https://bitbucket.org/ned/coveragepy/issue/123/pyeval_settrace-used-in-way-that-breaks
1168 .. _issue 125: https://bitbucket.org/ned/coveragepy/issue/125/coverage-removes-decoratortoolss-tracing
1171 Version 3.4 --- 2010-09-19
1172 --------------------------
1174 - The XML report is now sorted by package name, fixing `issue 88`_.
1176 - Programs that exited with ``sys.exit()`` with no argument weren't handled
1177   properly, producing a coverage.py stack trace.  That is now fixed.
1179 .. _issue 88: http://bitbucket.org/ned/coveragepy/issue/88/xml-report-lists-packages-in-random-order
1182 Version 3.4b2 --- 2010-09-06
1183 ----------------------------
1185 - Completely unexecuted files can now be included in coverage results, reported
1186   as 0% covered.  This only happens if the --source option is specified, since
1187   coverage.py needs guidance about where to look for source files.
1189 - The XML report output now properly includes a percentage for branch coverage,
1190   fixing `issue 65`_ and `issue 81`_.
1192 - Coverage percentages are now displayed uniformly across reporting methods.
1193   Previously, different reports could round percentages differently.  Also,
1194   percentages are only reported as 0% or 100% if they are truly 0 or 100, and
1195   are rounded otherwise.  Fixes `issue 41`_ and `issue 70`_.
1197 - The precision of reported coverage percentages can be set with the
1198   ``[report] precision`` config file setting.  Completes `issue 16`_.
1200 - Threads derived from ``threading.Thread`` with an overridden `run` method
1201   would report no coverage for the `run` method.  This is now fixed, closing
1202   `issue 85`_.
1204 .. _issue 16: http://bitbucket.org/ned/coveragepy/issue/16/allow-configuration-of-accuracy-of-percentage-totals
1205 .. _issue 41: http://bitbucket.org/ned/coveragepy/issue/41/report-says-100-when-it-isnt-quite-there
1206 .. _issue 65: http://bitbucket.org/ned/coveragepy/issue/65/branch-option-not-reported-in-cobertura
1207 .. _issue 70: http://bitbucket.org/ned/coveragepy/issue/70/text-report-and-html-report-disagree-on-coverage
1208 .. _issue 81: http://bitbucket.org/ned/coveragepy/issue/81/xml-report-does-not-have-condition-coverage-attribute-for-lines-with-a
1209 .. _issue 85: http://bitbucket.org/ned/coveragepy/issue/85/threadrun-isnt-measured
1212 Version 3.4b1 --- 2010-08-21
1213 ----------------------------
1215 - BACKWARD INCOMPATIBILITY: the ``--omit`` and ``--include`` switches now take
1216   file patterns rather than file prefixes, closing `issue 34`_ and `issue 36`_.
1218 - BACKWARD INCOMPATIBILITY: the `omit_prefixes` argument is gone throughout
1219   coverage.py, replaced with `omit`, a list of file name patterns suitable for
1220   `fnmatch`.  A parallel argument `include` controls what files are included.
1222 - The run command now has a ``--source`` switch, a list of directories or
1223   module names.  If provided, coverage.py will only measure execution in those
1224   source files.
1226 - Various warnings are printed to stderr for problems encountered during data
1227   measurement: if a ``--source`` module has no Python source to measure, or is
1228   never encountered at all, or if no data is collected.
1230 - The reporting commands (report, annotate, html, and xml) now have an
1231   ``--include`` switch to restrict reporting to modules matching those file
1232   patterns, similar to the existing ``--omit`` switch. Thanks, Zooko.
1234 - The run command now supports ``--include`` and ``--omit`` to control what
1235   modules it measures. This can speed execution and reduce the amount of data
1236   during reporting. Thanks Zooko.
1238 - Since coverage.py 3.1, using the Python trace function has been slower than
1239   it needs to be.  A cache of tracing decisions was broken, but has now been
1240   fixed.
1242 - Python 2.7 and 3.2 have introduced new opcodes that are now supported.
1244 - Python files with no statements, for example, empty ``__init__.py`` files,
1245   are now reported as having zero statements instead of one.  Fixes `issue 1`_.
1247 - Reports now have a column of missed line counts rather than executed line
1248   counts, since developers should focus on reducing the missed lines to zero,
1249   rather than increasing the executed lines to varying targets.  Once
1250   suggested, this seemed blindingly obvious.
1252 - Line numbers in HTML source pages are clickable, linking directly to that
1253   line, which is highlighted on arrival.  Added a link back to the index page
1254   at the bottom of each HTML page.
1256 - Programs that call ``os.fork`` will properly collect data from both the child
1257   and parent processes.  Use ``coverage run -p`` to get two data files that can
1258   be combined with ``coverage combine``.  Fixes `issue 56`_.
1260 - Coverage.py is now runnable as a module: ``python -m coverage``.  Thanks,
1261   Brett Cannon.
1263 - When measuring code running in a virtualenv, most of the system library was
1264   being measured when it shouldn't have been.  This is now fixed.
1266 - Doctest text files are no longer recorded in the coverage data, since they
1267   can't be reported anyway.  Fixes `issue 52`_ and `issue 61`_.
1269 - Jinja HTML templates compile into Python code using the HTML file name,
1270   which confused coverage.py.  Now these files are no longer traced, fixing
1271   `issue 82`_.
1273 - Source files can have more than one dot in them (foo.test.py), and will be
1274   treated properly while reporting.  Fixes `issue 46`_.
1276 - Source files with DOS line endings are now properly tokenized for syntax
1277   coloring on non-DOS machines.  Fixes `issue 53`_.
1279 - Unusual code structure that confused exits from methods with exits from
1280   classes is now properly analyzed.  See `issue 62`_.
1282 - Asking for an HTML report with no files now shows a nice error message rather
1283   than a cryptic failure ('int' object is unsubscriptable). Fixes `issue 59`_.
1285 .. _issue 1:  http://bitbucket.org/ned/coveragepy/issue/1/empty-__init__py-files-are-reported-as-1-executable
1286 .. _issue 34: http://bitbucket.org/ned/coveragepy/issue/34/enhanced-omit-globbing-handling
1287 .. _issue 36: http://bitbucket.org/ned/coveragepy/issue/36/provide-regex-style-omit
1288 .. _issue 46: http://bitbucket.org/ned/coveragepy/issue/46
1289 .. _issue 53: http://bitbucket.org/ned/coveragepy/issue/53
1290 .. _issue 52: http://bitbucket.org/ned/coveragepy/issue/52/doctesttestfile-confuses-source-detection
1291 .. _issue 56: http://bitbucket.org/ned/coveragepy/issue/56
1292 .. _issue 61: http://bitbucket.org/ned/coveragepy/issue/61/annotate-i-doesnt-work
1293 .. _issue 62: http://bitbucket.org/ned/coveragepy/issue/62
1294 .. _issue 59: http://bitbucket.org/ned/coveragepy/issue/59/html-report-fails-with-int-object-is
1295 .. _issue 82: http://bitbucket.org/ned/coveragepy/issue/82/tokenerror-when-generating-html-report
1298 Version 3.3.1 --- 2010-03-06
1299 ----------------------------
1301 - Using `parallel=True` in .coveragerc file prevented reporting, but now does
1302   not, fixing `issue 49`_.
1304 - When running your code with "coverage run", if you call `sys.exit()`,
1305   coverage.py will exit with that status code, fixing `issue 50`_.
1307 .. _issue 49: http://bitbucket.org/ned/coveragepy/issue/49
1308 .. _issue 50: http://bitbucket.org/ned/coveragepy/issue/50
1311 Version 3.3 --- 2010-02-24
1312 --------------------------
1314 - Settings are now read from a .coveragerc file.  A specific file can be
1315   specified on the command line with --rcfile=FILE.  The name of the file can
1316   be programmatically set with the `config_file` argument to the coverage()
1317   constructor, or reading a config file can be disabled with
1318   `config_file=False`.
1320 - Fixed a problem with nested loops having their branch possibilities
1321   mischaracterized: `issue 39`_.
1323 - Added coverage.process_start to enable coverage measurement when Python
1324   starts.
1326 - Parallel data file names now have a random number appended to them in
1327   addition to the machine name and process id.
1329 - Parallel data files combined with "coverage combine" are deleted after
1330   they're combined, to clean up unneeded files.  Fixes `issue 40`_.
1332 - Exceptions thrown from product code run with "coverage run" are now displayed
1333   without internal coverage.py frames, so the output is the same as when the
1334   code is run without coverage.py.
1336 - The `data_suffix` argument to the coverage constructor is now appended with
1337   an added dot rather than simply appended, so that .coveragerc files will not
1338   be confused for data files.
1340 - Python source files that don't end with a newline can now be executed, fixing
1341   `issue 47`_.
1343 - Added an AUTHORS.txt file.
1345 .. _issue 39: http://bitbucket.org/ned/coveragepy/issue/39
1346 .. _issue 40: http://bitbucket.org/ned/coveragepy/issue/40
1347 .. _issue 47: http://bitbucket.org/ned/coveragepy/issue/47
1350 Version 3.2 --- 2009-12-05
1351 --------------------------
1353 - Added a ``--version`` option on the command line.
1356 Version 3.2b4 --- 2009-12-01
1357 ----------------------------
1359 - Branch coverage improvements:
1361   - The XML report now includes branch information.
1363 - Click-to-sort HTML report columns are now persisted in a cookie.  Viewing
1364   a report will sort it first the way you last had a coverage report sorted.
1365   Thanks, `Chris Adams`_.
1367 - On Python 3.x, setuptools has been replaced by `Distribute`_.
1369 .. _Distribute: http://packages.python.org/distribute/
1372 Version 3.2b3 --- 2009-11-23
1373 ----------------------------
1375 - Fixed a memory leak in the C tracer that was introduced in 3.2b1.
1377 - Branch coverage improvements:
1379   - Branches to excluded code are ignored.
1381 - The table of contents in the HTML report is now sortable: click the headers
1382   on any column.  Thanks, `Chris Adams`_.
1384 .. _Chris Adams: http://improbable.org/chris/
1387 Version 3.2b2 --- 2009-11-19
1388 ----------------------------
1390 - Branch coverage improvements:
1392   - Classes are no longer incorrectly marked as branches: `issue 32`_.
1394   - "except" clauses with types are no longer incorrectly marked as branches:
1395     `issue 35`_.
1397 - Fixed some problems syntax coloring sources with line continuations and
1398   source with tabs: `issue 30`_ and `issue 31`_.
1400 - The --omit option now works much better than before, fixing `issue 14`_ and
1401   `issue 33`_.  Thanks, Danek Duvall.
1403 .. _issue 14: http://bitbucket.org/ned/coveragepy/issue/14
1404 .. _issue 30: http://bitbucket.org/ned/coveragepy/issue/30
1405 .. _issue 31: http://bitbucket.org/ned/coveragepy/issue/31
1406 .. _issue 32: http://bitbucket.org/ned/coveragepy/issue/32
1407 .. _issue 33: http://bitbucket.org/ned/coveragepy/issue/33
1408 .. _issue 35: http://bitbucket.org/ned/coveragepy/issue/35
1411 Version 3.2b1 --- 2009-11-10
1412 ----------------------------
1414 - Branch coverage!
1416 - XML reporting has file paths that let Cobertura find the source code.
1418 - The tracer code has changed, it's a few percent faster.
1420 - Some exceptions reported by the command line interface have been cleaned up
1421   so that tracebacks inside coverage.py aren't shown.  Fixes `issue 23`_.
1423 .. _issue 23: http://bitbucket.org/ned/coveragepy/issue/23
1426 Version 3.1 --- 2009-10-04
1427 --------------------------
1429 - Source code can now be read from eggs.  Thanks, Ross Lawley.  Fixes
1430   `issue 25`_.
1432 .. _issue 25: http://bitbucket.org/ned/coveragepy/issue/25
1435 Version 3.1b1 --- 2009-09-27
1436 ----------------------------
1438 - Python 3.1 is now supported.
1440 - Coverage.py has a new command line syntax with sub-commands.  This expands
1441   the possibilities for adding features and options in the future.  The old
1442   syntax is still supported.  Try "coverage help" to see the new commands.
1443   Thanks to Ben Finney for early help.
1445 - Added an experimental "coverage xml" command for producing coverage reports
1446   in a Cobertura-compatible XML format.  Thanks, Bill Hart.
1448 - Added the --timid option to enable a simpler slower trace function that works
1449   for DecoratorTools projects, including TurboGears.  Fixed `issue 12`_ and
1450   `issue 13`_.
1452 - HTML reports show modules from other directories.  Fixed `issue 11`_.
1454 - HTML reports now display syntax-colored Python source.
1456 - Programs that change directory will still write .coverage files in the
1457   directory where execution started.  Fixed `issue 24`_.
1459 - Added a "coverage debug" command for getting diagnostic information about the
1460   coverage.py installation.
1462 .. _issue 11: http://bitbucket.org/ned/coveragepy/issue/11
1463 .. _issue 12: http://bitbucket.org/ned/coveragepy/issue/12
1464 .. _issue 13: http://bitbucket.org/ned/coveragepy/issue/13
1465 .. _issue 24: http://bitbucket.org/ned/coveragepy/issue/24
1468 Version 3.0.1 --- 2009-07-07
1469 ----------------------------
1471 - Removed the recursion limit in the tracer function.  Previously, code that
1472   ran more than 500 frames deep would crash. Fixed `issue 9`_.
1474 - Fixed a bizarre problem involving pyexpat, whereby lines following XML parser
1475   invocations could be overlooked.  Fixed `issue 10`_.
1477 - On Python 2.3, coverage.py could mis-measure code with exceptions being
1478   raised.  This is now fixed.
1480 - The coverage.py code itself will now not be measured by coverage.py, and no
1481   coverage.py modules will be mentioned in the nose --with-cover plug-in.
1482   Fixed `issue 8`_.
1484 - When running source files, coverage.py now opens them in universal newline
1485   mode just like Python does.  This lets it run Windows files on Mac, for
1486   example.
1488 .. _issue 9: http://bitbucket.org/ned/coveragepy/issue/9
1489 .. _issue 10: http://bitbucket.org/ned/coveragepy/issue/10
1490 .. _issue 8: http://bitbucket.org/ned/coveragepy/issue/8
1493 Version 3.0 --- 2009-06-13
1494 --------------------------
1496 - Fixed the way the Python library was ignored.  Too much code was being
1497   excluded the old way.
1499 - Tabs are now properly converted in HTML reports.  Previously indentation was
1500   lost.  Fixed `issue 6`_.
1502 - Nested modules now get a proper flat_rootname.  Thanks, Christian Heimes.
1504 .. _issue 6: http://bitbucket.org/ned/coveragepy/issue/6
1507 Version 3.0b3 --- 2009-05-16
1508 ----------------------------
1510 - Added parameters to coverage.__init__ for options that had been set on the
1511   coverage object itself.
1513 - Added clear_exclude() and get_exclude_list() methods for programmatic
1514   manipulation of the exclude regexes.
1516 - Added coverage.load() to read previously-saved data from the data file.
1518 - Improved the finding of code files.  For example, .pyc files that have been
1519   installed after compiling are now located correctly.  Thanks, Detlev
1520   Offenbach.
1522 - When using the object API (that is, constructing a coverage() object), data
1523   is no longer saved automatically on process exit.  You can re-enable it with
1524   the auto_data=True parameter on the coverage() constructor. The module-level
1525   interface still uses automatic saving.
1528 Version 3.0b --- 2009-04-30
1529 ---------------------------
1531 HTML reporting, and continued refactoring.
1533 - HTML reports and annotation of source files: use the new -b (browser) switch.
1534   Thanks to George Song for code, inspiration and guidance.
1536 - Code in the Python standard library is not measured by default.  If you need
1537   to measure standard library code, use the -L command-line switch during
1538   execution, or the cover_pylib=True argument to the coverage() constructor.
1540 - Source annotation into a directory (-a -d) behaves differently.  The
1541   annotated files are named with their hierarchy flattened so that same-named
1542   files from different directories no longer collide.  Also, only files in the
1543   current tree are included.
1545 - coverage.annotate_file is no longer available.
1547 - Programs executed with -x now behave more as they should, for example,
1548   __file__ has the correct value.
1550 - .coverage data files have a new pickle-based format designed for better
1551   extensibility.
1553 - Removed the undocumented cache_file argument to coverage.usecache().
1556 Version 3.0b1 --- 2009-03-07
1557 ----------------------------
1559 Major overhaul.
1561 - Coverage.py is now a package rather than a module.  Functionality has been
1562   split into classes.
1564 - The trace function is implemented in C for speed.  Coverage.py runs are now
1565   much faster.  Thanks to David Christian for productive micro-sprints and
1566   other encouragement.
1568 - Executable lines are identified by reading the line number tables in the
1569   compiled code, removing a great deal of complicated analysis code.
1571 - Precisely which lines are considered executable has changed in some cases.
1572   Therefore, your coverage stats may also change slightly.
1574 - The singleton coverage object is only created if the module-level functions
1575   are used.  This maintains the old interface while allowing better
1576   programmatic use of Coverage.py.
1578 - The minimum supported Python version is 2.3.
1581 Version 2.85 --- 2008-09-14
1582 ---------------------------
1584 - Add support for finding source files in eggs. Don't check for
1585   morf's being instances of ModuleType, instead use duck typing so that
1586   pseudo-modules can participate. Thanks, Imri Goldberg.
1588 - Use os.realpath as part of the fixing of file names so that symlinks won't
1589   confuse things. Thanks, Patrick Mezard.
1592 Version 2.80 --- 2008-05-25
1593 ---------------------------
1595 - Open files in rU mode to avoid line ending craziness. Thanks, Edward Loper.
1598 Version 2.78 --- 2007-09-30
1599 ---------------------------
1601 - Don't try to predict whether a file is Python source based on the extension.
1602   Extension-less files are often Pythons scripts. Instead, simply parse the file
1603   and catch the syntax errors. Hat tip to Ben Finney.
1606 Version 2.77 --- 2007-07-29
1607 ---------------------------
1609 - Better packaging.
1612 Version 2.76 --- 2007-07-23
1613 ---------------------------
1615 - Now Python 2.5 is *really* fully supported: the body of the new with
1616   statement is counted as executable.
1619 Version 2.75 --- 2007-07-22
1620 ---------------------------
1622 - Python 2.5 now fully supported. The method of dealing with multi-line
1623   statements is now less sensitive to the exact line that Python reports during
1624   execution. Pass statements are handled specially so that their disappearance
1625   during execution won't throw off the measurement.
1628 Version 2.7 --- 2007-07-21
1629 --------------------------
1631 - "#pragma: nocover" is excluded by default.
1633 - Properly ignore docstrings and other constant expressions that appear in the
1634   middle of a function, a problem reported by Tim Leslie.
1636 - coverage.erase() shouldn't clobber the exclude regex. Change how parallel
1637   mode is invoked, and fix erase() so that it erases the cache when called
1638   programmatically.
1640 - In reports, ignore code executed from strings, since we can't do anything
1641   useful with it anyway.
1643 - Better file handling on Linux, thanks Guillaume Chazarain.
1645 - Better shell support on Windows, thanks Noel O'Boyle.
1647 - Python 2.2 support maintained, thanks Catherine Proulx.
1649 - Minor changes to avoid lint warnings.
1652 Version 2.6 --- 2006-08-23
1653 --------------------------
1655 - Applied Joseph Tate's patch for function decorators.
1657 - Applied Sigve Tjora and Mark van der Wal's fixes for argument handling.
1659 - Applied Geoff Bache's parallel mode patch.
1661 - Refactorings to improve testability. Fixes to command-line logic for parallel
1662   mode and collect.
1665 Version 2.5 --- 2005-12-04
1666 --------------------------
1668 - Call threading.settrace so that all threads are measured. Thanks Martin
1669   Fuzzey.
1671 - Add a file argument to report so that reports can be captured to a different
1672   destination.
1674 - Coverage.py can now measure itself.
1676 - Adapted Greg Rogers' patch for using relative file names, and sorting and
1677   omitting files to report on.
1680 Version 2.2 --- 2004-12-31
1681 --------------------------
1683 - Allow for keyword arguments in the module global functions. Thanks, Allen.
1686 Version 2.1 --- 2004-12-14
1687 --------------------------
1689 - Return 'analysis' to its original behavior and add 'analysis2'. Add a global
1690   for 'annotate', and factor it, adding 'annotate_file'.
1693 Version 2.0 --- 2004-12-12
1694 --------------------------
1696 Significant code changes.
1698 - Finding executable statements has been rewritten so that docstrings and
1699   other quirks of Python execution aren't mistakenly identified as missing
1700   lines.
1702 - Lines can be excluded from consideration, even entire suites of lines.
1704 - The file system cache of covered lines can be disabled programmatically.
1706 - Modernized the code.
1709 Earlier History
1710 ---------------
1712 2001-12-04 GDR Created.
1714 2001-12-06 GDR Added command-line interface and source code annotation.
1716 2001-12-09 GDR Moved design and interface to separate documents.
1718 2001-12-10 GDR Open cache file as binary on Windows. Allow simultaneous -e and
1719 -x, or -a and -r.
1721 2001-12-12 GDR Added command-line help. Cache analysis so that it only needs to
1722 be done once when you specify -a and -r.
1724 2001-12-13 GDR Improved speed while recording. Portable between Python 1.5.2
1725 and 2.1.1.
1727 2002-01-03 GDR Module-level functions work correctly.
1729 2002-01-07 GDR Update sys.path when running a file with the -x option, so that
1730 it matches the value the program would get if it were run on its own.