summaryrefslogtreecommitdiff
path: root/doc/migrations.rst
blob: e618cdc00f1bfcd36c81ecd909f7853f59350b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
.. For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt

.. _migrations:

==========================
Migrating between versions
==========================

.. _migrating_6x_7x:

Migrating 6.5.x — 7.0.x
-----------------------

- The way that wildcards when specifying file paths work in certain cases has changed in 7.0.x:

  - Previously, ``*`` would incorrectly match directory separators, making
    precise matching difficult. Patterns such as ``*tests/*``
    will need to be changed to ``*/tests/*``.

  - ``**`` now matches any number of nested directories. If you wish to retain the behavior of
    ``**/tests/*`` in previous versions then  ``*/**/tests/*`` can be used instead.

- When remapping file paths with ``[paths]``, a path will be remapped only if
  the resulting path exists. Ensure that remapped ``[paths]`` exist when upgrading
  as this is now being enforced.