File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ Change history for Coverage.py
5
5
Version 3.5.1
6
6
-------------
7
7
8
+ - When combining data files from parallel runs, you can now instruct coverage
9
+ about which directories are equivalent on different machines. A ``[paths]``
10
+ section in the configuration file lists paths that are to be considered
11
+ equivalent.
12
+
8
13
- for-else constructs are understood better, and don't cause erroneous partial
9
14
branch warnings. Fixes `issue 122`_.
10
15
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ Coverage command line usage
11
11
:history: 20091127T200700, changes for 3.2
12
12
:history: 20100223T200600, changes for 3.3
13
13
:history: 20100725T211700, updated for 3.4
14
+ :history: 20110827T212500, updated for 3.5.1, combining aliases
14
15
15
16
.. highlight :: console
16
17
@@ -139,6 +140,11 @@ data file::
139
140
140
141
$ coverage combine
141
142
143
+ If the different machines run your code from different places in their file
144
+ systems, coverage won't know how to combine the data. You can tell coverage
145
+ how the different locations correlate with a ``[paths] `` section in your
146
+ configuration file. See :ref: `config_paths ` for details.
147
+
142
148
143
149
.. _cmd_reporting :
144
150
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Configuration files
8
8
:history: 20100725T211700, updated for 3.4.
9
9
:history: 20100824T092900, added ``precision ``.
10
10
:history: 20110604T184400, updated for 3.5.
11
+ :history: 20110827T212700, updated for 3.5.1
11
12
12
13
13
14
Coverage.py options can be specified in a configuration file. This makes it
@@ -103,6 +104,33 @@ measure during execution. See :ref:`source` for details.
103
104
Try this if you get seemingly impossible results.
104
105
105
106
107
+ .. _config_paths :
108
+
109
+ [paths]
110
+ -------
111
+
112
+ The entries in this section are lists of file paths that should be
113
+ considered equivalent when combining data from different machines::
114
+
115
+ [paths]
116
+ source =
117
+ src/
118
+ /jenkins/build/*/src
119
+ c:\myproj\src
120
+
121
+ The names of the entries are ignored, you may choose any name that
122
+ you like. The value is a lists of strings. When combining data
123
+ with the ``combine `` command, two file paths will be combined
124
+ if they start with paths from the same list.
125
+
126
+ The first value must be an actual file path on the machine where
127
+ the reporting will happen, so that source code can be found.
128
+ The other values can be file patterns to match against the paths
129
+ of collected data.
130
+
131
+ See :ref: `cmd_combining ` for more information.
132
+
133
+
106
134
[report]
107
135
--------
108
136
You can’t perform that action at this time.
0 commit comments