@@ -15,15 +15,18 @@ Major change history for coverage.py
15
15
:history: 20100725T211700, updated for 3.4.
16
16
:history: 20100820T151500, updated for 3.4b1
17
17
:history: 20100906T133800, updated for 3.4b2
18
+ :history: 20100919T163400, updated for 3.4 release.
18
19
19
20
These are the major changes for coverage.py. For a more complete change
20
21
history, see the `CHANGES.txt `_ file in the source tree.
21
22
22
23
.. _CHANGES.txt : http://bitbucket.org/ned/coveragepy/src/tip/CHANGES.txt
23
24
24
25
25
- Version 3.4 beta --- 6 September 2010
26
- -------------------------------------
26
+ Version 3.4 --- 19 September 2010
27
+ ---------------------------------
28
+
29
+ Controlling source:
27
30
28
31
- BACKWARD INCOMPATIBILITY: the ``--omit `` and ``--include `` switches now take
29
32
file patterns rather than file prefixes, closing `issue 34 `_ and `issue 36 `_.
@@ -38,18 +41,16 @@ Version 3.4 beta --- 6 September 2010
38
41
to control what modules it measures. This can speed execution and reduce the
39
42
amount of data during reporting. Thanks Zooko.
40
43
41
- - Completely unexecuted files can now be included in coverage results, reported
42
- as 0% covered. This only happens if the --source option is specified, since
43
- coverage.py needs guidance about where to look for source files.
44
-
45
- - Various warnings are printed to stderr for problems encountered during data
46
- measurement: if a ``--source `` module has no Python source to measure, or is
47
- never encountered at all, or if no data is collected.
48
-
49
44
- The reporting commands (report, annotate, html, and xml) now have an
50
45
``--include `` switch to restrict reporting to modules matching those file
51
46
patterns, similar to the existing ``--omit `` switch. Thanks, Zooko.
52
47
48
+ Reporting:
49
+
50
+ - Completely unexecuted files can now be included in coverage results, reported
51
+ as 0% covered. This only happens if the --source option is specified, since
52
+ coverage.py needs guidance about where to look for source files.
53
+
53
54
- Python files with no statements, for example, empty ``__init__.py `` files,
54
55
are now reported as having zero statements instead of one. Fixes `issue 1 `_.
55
56
@@ -67,16 +68,30 @@ Version 3.4 beta --- 6 September 2010
67
68
fixing `issue 65 `_ and `issue 81 `_, and the report is sorted by package
68
69
name, fixing `issue 88 `_.
69
70
71
+ - The XML report is now sorted by package name, fixing `issue 88 `_.
72
+
70
73
- The precision of reported coverage percentages can be set with the
71
74
``[report] precision `` config file setting. Completes `issue 16 `_.
72
75
76
+ - Line numbers in HTML source pages are clickable, linking directly to that
77
+ line, which is highlighted on arrival. Added a link back to the index page
78
+ at the bottom of each HTML page.
79
+
80
+ Execution and measurement:
81
+
82
+ - Various warnings are printed to stderr for problems encountered during data
83
+ measurement: if a ``--source `` module has no Python source to measure, or is
84
+ never encountered at all, or if no data is collected.
85
+
86
+ - Doctest text files are no longer recorded in the coverage data, since they
87
+ can't be reported anyway. Fixes `issue 52 `_ and `issue 61 `_.
88
+
73
89
- Threads derived from ``threading.Thread `` with an overridden `run ` method
74
90
would report no coverage for the `run ` method. This is now fixed, closing
75
91
`issue 85 `_.
76
92
77
- - Line numbers in HTML source pages are clickable, linking directly to that
78
- line, which is highlighted on arrival. Added a link back to the index page
79
- at the bottom of each HTML page.
93
+ - Programs that exited with ``sys.exit() `` with no argument weren't handled
94
+ properly, producing a coverage.py stack trace. This is now fixed.
80
95
81
96
- Programs that call ``os.fork `` will properly collect data from both the child
82
97
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
85
100
- When measuring code running in a virtualenv, most of the system library was
86
101
being measured when it shouldn't have been. This is now fixed.
87
102
88
- - Doctest text files are no longer recorded in the coverage data, since they
89
- can't be reported anyway. Fixes `issue 52 `_ and `issue 61 `_.
90
-
91
103
.. _issue 1 : http://bitbucket.org/ned/coveragepy/issue/1/empty-__init__py-files-are-reported-as-1-executable
92
104
.. _issue 16 : http://bitbucket.org/ned/coveragepy/issue/16/allow-configuration-of-accuracy-of-percentage-totals
93
105
.. _issue 34 : http://bitbucket.org/ned/coveragepy/issue/34/enhanced-omit-globbing-handling
@@ -102,6 +114,7 @@ Version 3.4 beta --- 6 September 2010
102
114
.. _issue 85 : http://bitbucket.org/ned/coveragepy/issue/85/threadrun-isnt-measured
103
115
.. _issue 88 : http://bitbucket.org/ned/coveragepy/issue/88/xml-report-lists-packages-in-random-order
104
116
117
+
105
118
Version 3.3.1 --- 6 March 2010
106
119
------------------------------
107
120
0 commit comments