@@ -142,11 +142,13 @@ There are many options:
142
142
path, to be run as 'python -m' would run it.
143
143
--omit=PAT1,PAT2,... Omit files whose paths match one of these patterns.
144
144
Accepts shell-style wildcards, which must be quoted.
145
+ --data-file=OUTFILE Write the recorded coverage data to this file.
146
+ Defaults to '.coverage'. [env: COVERAGE_FILE]
145
147
-L, --pylib Measure coverage even inside the Python installed
146
148
library, which isn't done by default.
147
149
-p, --parallel-mode Append the machine name, process id and random number
148
- to the .coverage data file name to simplify collecting
149
- data from many processes.
150
+ to the data file name to simplify collecting data from
151
+ many processes.
150
152
--source=SRC1,SRC2,...
151
153
A list of directories or importable names of code to
152
154
measure.
@@ -158,7 +160,7 @@ There are many options:
158
160
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
159
161
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
160
162
tried. [env: COVERAGE_RCFILE]
161
- .. [[[end]]] (checksum: bf76ace21288ca9d3c558ccd5fb82b08 )
163
+ .. [[[end]]] (checksum: 3ec48d96422f8b3aed3cf5a8b223891f )
162
164
163
165
If you want :ref: `branch coverage <branch >` measurement, use the ``--branch ``
164
166
flag. Otherwise only statement coverage is measured.
@@ -387,16 +389,20 @@ want to keep those files, use the ``--keep`` command-line option.
387
389
directory are combined.
388
390
389
391
Options:
390
- -a, --append Append coverage data to .coverage, otherwise it starts
391
- clean each time.
392
- --keep Keep original coverage files, otherwise they are deleted.
393
- -q, --quiet Don't print messages about what is happening.
394
- --debug=OPTS Debug options, separated by commas. [env: COVERAGE_DEBUG]
395
- -h, --help Get help on this command.
396
- --rcfile=RCFILE Specify configuration file. By default '.coveragerc',
397
- 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried.
398
- [env: COVERAGE_RCFILE]
399
- .. [[[end]]] (checksum: ddd34bbd27ab1fda8dabce80e4d67795)
392
+ -a, --append Append coverage data to .coverage, otherwise it starts
393
+ clean each time.
394
+ --keep Keep original coverage files, otherwise they are
395
+ deleted.
396
+ -q, --quiet Don't print messages about what is happening.
397
+ --data-file=DATAFILE Base name of the data files to combine and write.
398
+ Defaults to '.coverage'. [env: COVERAGE_FILE]
399
+ --debug=OPTS Debug options, separated by commas. [env:
400
+ COVERAGE_DEBUG]
401
+ -h, --help Get help on this command.
402
+ --rcfile=RCFILE Specify configuration file. By default '.coveragerc',
403
+ 'setup.cfg', 'tox.ini', and 'pyproject.toml' are
404
+ tried. [env: COVERAGE_RCFILE]
405
+ .. [[[end]]] (checksum: 6cba18a0531f9d2f7af67e472b96eb6b)
400
406
401
407
402
408
.. _cmd_erase :
@@ -415,12 +421,15 @@ To erase the collected data, use the **erase** command:
415
421
Erase previously collected coverage data.
416
422
417
423
Options:
418
- --debug=OPTS Debug options, separated by commas. [env: COVERAGE_DEBUG]
419
- -h, --help Get help on this command.
420
- --rcfile=RCFILE Specify configuration file. By default '.coveragerc',
421
- 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried.
422
- [env: COVERAGE_RCFILE]
423
- .. [[[end]]] (checksum: 27f64e800a037c7e8f90289affdd5f13)
424
+ --data-file=INFILE Read coverage data for report generation from this file.
425
+ Defaults to '.coverage'. [env: COVERAGE_FILE]
426
+ --debug=OPTS Debug options, separated by commas. [env:
427
+ COVERAGE_DEBUG]
428
+ -h, --help Get help on this command.
429
+ --rcfile=RCFILE Specify configuration file. By default '.coveragerc',
430
+ 'setup.cfg', 'tox.ini', and 'pyproject.toml' are tried.
431
+ [env: COVERAGE_RCFILE]
432
+ .. [[[end]]] (checksum: e3dec8ef7687d3525682904340e8cf54)
424
433
425
434
If your configuration file indicates parallel data collection, **erase ** will
426
435
remove all of the data files.
@@ -505,13 +514,15 @@ as a percentage.
505
514
--skip-covered Skip files with 100% coverage.
506
515
--no-skip-covered Disable --skip-covered.
507
516
--skip-empty Skip files with no code.
517
+ --data-file=INFILE Read coverage data for report generation from this
518
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
508
519
--debug=OPTS Debug options, separated by commas. [env:
509
520
COVERAGE_DEBUG]
510
521
-h, --help Get help on this command.
511
522
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
512
523
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
513
524
tried. [env: COVERAGE_RCFILE]
514
- .. [[[end]]] (checksum: e5e77534929d2579f9d022227ef97313 )
525
+ .. [[[end]]] (checksum: 97565fdb6f1eefbeeb12d56151fa5e63 )
515
526
516
527
The ``-m `` flag also shows the line numbers of missing statements::
517
528
@@ -619,13 +630,15 @@ Click the keyboard icon in the upper right to see the complete list.
619
630
--no-skip-covered Disable --skip-covered.
620
631
--skip-empty Skip files with no code.
621
632
--title=TITLE A text string to use as the title on the HTML.
633
+ --data-file=INFILE Read coverage data for report generation from this
634
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
622
635
--debug=OPTS Debug options, separated by commas. [env:
623
636
COVERAGE_DEBUG]
624
637
-h, --help Get help on this command.
625
638
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
626
639
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
627
640
tried. [env: COVERAGE_RCFILE]
628
- .. [[[end]]] (checksum: 75eda57d99b6c7b736f8ab2d60cc765d )
641
+ .. [[[end]]] (checksum: e3208f3b38a44ca81e0235e867f4fd1c )
629
642
630
643
The title of the report can be set with the ``title `` setting in the
631
644
``[html] `` section of the configuration file, or the ``--title `` switch on
@@ -691,13 +704,15 @@ compatible with `Cobertura`_.
691
704
'coverage.xml'
692
705
-q, --quiet Don't print messages about what is happening.
693
706
--skip-empty Skip files with no code.
707
+ --data-file=INFILE Read coverage data for report generation from this
708
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
694
709
--debug=OPTS Debug options, separated by commas. [env:
695
710
COVERAGE_DEBUG]
696
711
-h, --help Get help on this command.
697
712
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
698
713
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
699
714
tried. [env: COVERAGE_RCFILE]
700
- .. [[[end]]] (checksum: 7f5bcdcacbd60e32514201f24c56c17f )
715
+ .. [[[end]]] (checksum: 3dc4450c0a723109f987c4b6f968be43 )
701
716
702
717
You can specify the name of the output file with the ``-o `` switch.
703
718
@@ -776,13 +791,15 @@ The **json** command writes coverage data to a "coverage.json" file.
776
791
--pretty-print Format the JSON for human readers.
777
792
-q, --quiet Don't print messages about what is happening.
778
793
--show-contexts Show contexts for covered lines.
794
+ --data-file=INFILE Read coverage data for report generation from this
795
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
779
796
--debug=OPTS Debug options, separated by commas. [env:
780
797
COVERAGE_DEBUG]
781
798
-h, --help Get help on this command.
782
799
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
783
800
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
784
801
tried. [env: COVERAGE_RCFILE]
785
- .. [[[end]]] (checksum: 6fbe1ca09a8f0379a5e1794d8ac14e79 )
802
+ .. [[[end]]] (checksum: fdc9af899380fbb78599d08a70e564fc )
786
803
787
804
You can specify the name of the output file with the ``-o `` switch. The JSON
788
805
can be nicely formatted by specifying the ``--pretty-print `` switch.
@@ -880,13 +897,15 @@ For example::
880
897
quoted.
881
898
--omit=PAT1,PAT2,... Omit files whose paths match one of these patterns.
882
899
Accepts shell-style wildcards, which must be quoted.
900
+ --data-file=INFILE Read coverage data for report generation from this
901
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
883
902
--debug=OPTS Debug options, separated by commas. [env:
884
903
COVERAGE_DEBUG]
885
904
-h, --help Get help on this command.
886
905
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
887
906
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
888
907
tried. [env: COVERAGE_RCFILE]
889
- .. [[[end]]] (checksum: 8c3175a256f38215016d03b66de23d5b )
908
+ .. [[[end]]] (checksum: aa41bad1cd4c08efc3276b5dca01dea3 )
890
909
891
910
Other common reporting options are described above in :ref: `cmd_reporting `.
892
911
0 commit comments