diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-10 08:53:01 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-10-15 13:58:50 -0400 |
commit | 7df8609f0462722fea3c0650cd94b76f668e07fe (patch) | |
tree | f553100b69b1b3ae10a947344d7abbc03b035fab /doc | |
parent | cb67b1feb2d68972f0eeb81a0e20b836b64c21dd (diff) | |
download | python-coveragepy-git-7df8609f0462722fea3c0650cd94b76f668e07fe.tar.gz |
docs: updates for implicit relative path mapping
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cmd.rst | 16 | ||||
-rw-r--r-- | doc/config.rst | 6 |
2 files changed, 12 insertions, 10 deletions
diff --git a/doc/cmd.rst b/doc/cmd.rst index c05b7bce..cb9a147e 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -377,6 +377,9 @@ It might be more convenient to use the ``[run] relative_files`` setting to store relative file paths (see :ref:`relative_files <config_run_relative_files>`). +If data isn't combining properly, you can see details about the inner workings +with ``--debug=pathmap``. + If any of the data files can't be read, coverage.py will print a warning indicating the file and the problem. @@ -389,11 +392,10 @@ want to keep those files, use the ``--keep`` command-line option. $ coverage combine --help Usage: coverage combine [options] <path1> <path2> ... <pathN> - Combine data from multiple coverage files collected with 'run -p'. The - combined results are written to a single file representing the union of the - data. The positional arguments are data files or directories containing data - files. If no paths are provided, data files in the default data file's - directory are combined. + Combine data from multiple coverage files. The combined results are written to + a single file representing the union of the data. The positional arguments are + data files or directories containing data files. If no paths are provided, + data files in the default data file's directory are combined. Options: -a, --append Append coverage data to .coverage, otherwise it starts @@ -409,7 +411,7 @@ want to keep those files, use the ``--keep`` command-line option. --rcfile=RCFILE Specify configuration file. By default '.coveragerc', 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried. [env: COVERAGE_RCFILE] -.. [[[end]]] (checksum: 0ac91b0781d7146b87953f09090dab92) +.. [[[end]]] (checksum: 0bdd83f647ee76363c955bedd9ddf749) .. _cmd_erase: @@ -1001,7 +1003,7 @@ of operation to log: * ``multiproc``: log the start and stop of multiprocessing processes. * ``pathmap``: log the remapping of paths that happens during ``coverage - combine`` due to the ``[paths]`` setting. See :ref:`config_paths`. + combine``. See :ref:`config_paths`. * ``pid``: annotate all warnings and debug output with the process and thread ids. diff --git a/doc/config.rst b/doc/config.rst index 66b02eac..0cb2cfa6 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -259,9 +259,9 @@ information. [run] relative_files .................... -(*experimental*, boolean, default False) store relative file paths in the data -file. This makes it easier to measure code in one (or multiple) environments, -and then report in another. See :ref:`cmd_combine` for details. +(boolean, default False) store relative file paths in the data file. This +makes it easier to measure code in one (or multiple) environments, and then +report in another. See :ref:`cmd_combine` for details. Note that setting ``source`` has to be done in the configuration file rather than the command line for this option to work, since the reporting commands |