|
7 | 7 | Migrating between versions
|
8 | 8 | ==========================
|
9 | 9 |
|
10 |
| -New major versions of coverage.py might require you to adjust your settings, |
11 |
| -options, or other aspects of your use. This page details those changes. |
| 10 | +New versions of coverage.py or Python might require you to adjust your |
| 11 | +settings, options, or other aspects how you use coverage.py. This page details |
| 12 | +those changes. |
12 | 13 |
|
13 |
| -.. _migrating_6x_7x: |
| 14 | +.. _migrating_cov7: |
14 | 15 |
|
15 |
| -Migrating from 6.x to 7.x |
16 |
| -------------------------- |
| 16 | +Migrating to coverage.py 7.x |
| 17 | +---------------------------- |
17 | 18 |
|
18 |
| -- The way that wildcards when specifying file paths work in certain cases has changed in 7.x: |
| 19 | +Consider these changes when migrating to coverage.py 7.x: |
| 20 | + |
| 21 | +- The way that wildcards when specifying file paths work in certain cases has |
| 22 | + changed in 7.x: |
19 | 23 |
|
20 | 24 | - Previously, ``*`` would incorrectly match directory separators, making
|
21 | 25 | precise matching difficult. Patterns such as ``*tests/*``
|
22 | 26 | will need to be changed to ``*/tests/*``.
|
23 | 27 |
|
24 |
| - - ``**`` now matches any number of nested directories. If you wish to retain the behavior of |
25 |
| - ``**/tests/*`` in previous versions then ``*/**/tests/*`` can be used instead. |
| 28 | + - ``**`` now matches any number of nested directories. If you wish to retain |
| 29 | + the behavior of ``**/tests/*`` in previous versions then ``*/**/tests/*`` |
| 30 | + can be used instead. |
26 | 31 |
|
27 | 32 | - When remapping file paths with ``[paths]``, a path will be remapped only if
|
28 |
| - the resulting path exists. Ensure that remapped ``[paths]`` exist when upgrading |
29 |
| - as this is now being enforced. |
| 33 | + the resulting path exists. Ensure that remapped ``[paths]`` exist when |
| 34 | + upgrading as this is now being enforced. |
30 | 35 |
|
31 | 36 | - The :ref:`config_report_exclude_also` setting is new in 7.2.0. It adds
|
32 | 37 | exclusion regexes while keeping the default built-in set. It's better than
|
|
0 commit comments