diff options
-rw-r--r-- | CHANGES.txt | 4 | ||||
-rw-r--r-- | coverage/__init__.py | 2 | ||||
-rw-r--r-- | doc/changes.rst | 45 | ||||
-rw-r--r-- | doc/conf.py | 2 | ||||
-rw-r--r-- | doc/index.rst | 3 | ||||
-rw-r--r-- | doc/install.rst | 2 |
6 files changed, 36 insertions, 22 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 27b1f72b..bd75b174 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,8 +3,8 @@ Change history for Coverage.py ------------------------------ -Version 3.4 ------------ +Version 3.4 --- 19 September 2010 +--------------------------------- - The XML report is now sorted by package name, fixing `issue 88`_. diff --git a/coverage/__init__.py b/coverage/__init__.py index 0dd80670..65bc003f 100644 --- a/coverage/__init__.py +++ b/coverage/__init__.py @@ -5,7 +5,7 @@ http://nedbatchelder.com/code/coverage """ -__version__ = "3.4c1" # see detailed history in CHANGES.txt +__version__ = "3.4" # see detailed history in CHANGES.txt __url__ = "http://nedbatchelder.com/code/coverage" if 'b' in __version__: diff --git a/doc/changes.rst b/doc/changes.rst index 47e6e28c..e5c44037 100644 --- a/doc/changes.rst +++ b/doc/changes.rst @@ -15,6 +15,7 @@ Major change history for coverage.py :history: 20100725T211700, updated for 3.4. :history: 20100820T151500, updated for 3.4b1 :history: 20100906T133800, updated for 3.4b2 +:history: 20100919T163400, updated for 3.4 release. These are the major changes for coverage.py. For a more complete change history, see the `CHANGES.txt`_ file in the source tree. @@ -22,8 +23,10 @@ history, see the `CHANGES.txt`_ file in the source tree. .. _CHANGES.txt: http://bitbucket.org/ned/coveragepy/src/tip/CHANGES.txt -Version 3.4 beta --- 6 September 2010 -------------------------------------- +Version 3.4 --- 19 September 2010 +--------------------------------- + +Controlling source: - BACKWARD INCOMPATIBILITY: the ``--omit`` and ``--include`` switches now take file patterns rather than file prefixes, closing `issue 34`_ and `issue 36`_. @@ -38,18 +41,16 @@ Version 3.4 beta --- 6 September 2010 to control what modules it measures. This can speed execution and reduce the amount of data during reporting. Thanks Zooko. -- Completely unexecuted files can now be included in coverage results, reported - as 0% covered. This only happens if the --source option is specified, since - coverage.py needs guidance about where to look for source files. - -- Various warnings are printed to stderr for problems encountered during data - measurement: if a ``--source`` module has no Python source to measure, or is - never encountered at all, or if no data is collected. - - The reporting commands (report, annotate, html, and xml) now have an ``--include`` switch to restrict reporting to modules matching those file patterns, similar to the existing ``--omit`` switch. Thanks, Zooko. +Reporting: + +- Completely unexecuted files can now be included in coverage results, reported + as 0% covered. This only happens if the --source option is specified, since + coverage.py needs guidance about where to look for source files. + - Python files with no statements, for example, empty ``__init__.py`` files, are now reported as having zero statements instead of one. Fixes `issue 1`_. @@ -67,16 +68,30 @@ Version 3.4 beta --- 6 September 2010 fixing `issue 65`_ and `issue 81`_, and the report is sorted by package name, fixing `issue 88`_. +- The XML report is now sorted by package name, fixing `issue 88`_. + - The precision of reported coverage percentages can be set with the ``[report] precision`` config file setting. Completes `issue 16`_. +- Line numbers in HTML source pages are clickable, linking directly to that + line, which is highlighted on arrival. Added a link back to the index page + at the bottom of each HTML page. + +Execution and measurement: + +- Various warnings are printed to stderr for problems encountered during data + measurement: if a ``--source`` module has no Python source to measure, or is + never encountered at all, or if no data is collected. + +- Doctest text files are no longer recorded in the coverage data, since they + can't be reported anyway. Fixes `issue 52`_ and `issue 61`_. + - Threads derived from ``threading.Thread`` with an overridden `run` method would report no coverage for the `run` method. This is now fixed, closing `issue 85`_. -- Line numbers in HTML source pages are clickable, linking directly to that - line, which is highlighted on arrival. Added a link back to the index page - at the bottom of each HTML page. +- Programs that exited with ``sys.exit()`` with no argument weren't handled + properly, producing a coverage.py stack trace. This is now fixed. - Programs that call ``os.fork`` will properly collect data from both the child and parent processes. Use ``coverage run -p`` to get two data files that can @@ -85,9 +100,6 @@ Version 3.4 beta --- 6 September 2010 - When measuring code running in a virtualenv, most of the system library was being measured when it shouldn't have been. This is now fixed. -- Doctest text files are no longer recorded in the coverage data, since they - can't be reported anyway. Fixes `issue 52`_ and `issue 61`_. - .. _issue 1: http://bitbucket.org/ned/coveragepy/issue/1/empty-__init__py-files-are-reported-as-1-executable .. _issue 16: http://bitbucket.org/ned/coveragepy/issue/16/allow-configuration-of-accuracy-of-percentage-totals .. _issue 34: http://bitbucket.org/ned/coveragepy/issue/34/enhanced-omit-globbing-handling @@ -102,6 +114,7 @@ Version 3.4 beta --- 6 September 2010 .. _issue 85: http://bitbucket.org/ned/coveragepy/issue/85/threadrun-isnt-measured .. _issue 88: http://bitbucket.org/ned/coveragepy/issue/88/xml-report-lists-packages-in-random-order + Version 3.3.1 --- 6 March 2010 ------------------------------ diff --git a/doc/conf.py b/doc/conf.py index 9e2aabcb..ceec8a88 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -49,7 +49,7 @@ copyright = u'2009-2010, Ned Batchelder' # The short X.Y version.
version = '3.4'
# The full version, including alpha/beta/rc tags.
-release = '3.4 beta 2'
+release = '3.4'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff --git a/doc/index.rst b/doc/index.rst index d92e63cf..4f5c689a 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -15,6 +15,7 @@ coverage.py :history: 20100725T211700, updated for 3.4. :history: 20100820T151500, updated for 3.4b1. :history: 20100906T134700, updated for 3.4b2. +:history: 20100919T163500, updated for 3.4 release. Coverage.py is a tool for measuring code coverage of Python programs. It monitors your program, noting which parts of the code have been executed, then @@ -24,7 +25,7 @@ Coverage measurement is typically used to gauge the effectiveness of tests. It can show which parts of your code are being exercised by tests, and which are not. -The latest version is 3.4 beta 2, released 6 September 2010. +The latest version is 3.4, released 19 September 2010. It is supported on Python 2.3 through 3.2 alpha 2. diff --git a/doc/install.rst b/doc/install.rst index 5db27636..76a9854e 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -58,4 +58,4 @@ If all went well, you should be able to open a command prompt, and see coverage installed properly:: $ coverage --version - Coverage.py, version 3.4b2. http://nedbatchelder.com/code/coverage/3.4b2 + Coverage.py, version 3.4. http://nedbatchelder.com/code/coverage |