@@ -134,6 +134,8 @@ There are many options:
134
134
Valid values are: eventlet, gevent, greenlet,
135
135
multiprocessing, thread, or a comma-list of them.
136
136
--context=LABEL The context label to record for this coverage run.
137
+ --data-file=OUTFILE Write the recorded coverage data to this file.
138
+ Defaults to '.coverage'. [env: COVERAGE_FILE]
137
139
--include=PAT1,PAT2,...
138
140
Include only files whose paths match one of these
139
141
patterns. Accepts shell-style wildcards, which must be
@@ -142,8 +144,6 @@ There are many options:
142
144
path, to be run as 'python -m' would run it.
143
145
--omit=PAT1,PAT2,... Omit files whose paths match one of these patterns.
144
146
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]
147
147
-L, --pylib Measure coverage even inside the Python installed
148
148
library, which isn't done by default.
149
149
-p, --parallel-mode Append the machine name, process id and random number
@@ -160,7 +160,7 @@ There are many options:
160
160
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
161
161
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
162
162
tried. [env: COVERAGE_RCFILE]
163
- .. [[[end]]] (checksum: 3ec48d96422f8b3aed3cf5a8b223891f )
163
+ .. [[[end]]] (checksum: 05d15818e42e6f989c42894fb2b3c753 )
164
164
165
165
If you want :ref: `branch coverage <branch >` measurement, use the ``--branch ``
166
166
flag. Otherwise only statement coverage is measured.
@@ -391,18 +391,18 @@ want to keep those files, use the ``--keep`` command-line option.
391
391
Options:
392
392
-a, --append Append coverage data to .coverage, otherwise it starts
393
393
clean each time.
394
+ --data-file=DATAFILE Base name of the data files to operate on. Defaults to
395
+ '.coverage'. [env: COVERAGE_FILE]
394
396
--keep Keep original coverage files, otherwise they are
395
397
deleted.
396
398
-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
399
--debug=OPTS Debug options, separated by commas. [env:
400
400
COVERAGE_DEBUG]
401
401
-h, --help Get help on this command.
402
402
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
403
403
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
404
404
tried. [env: COVERAGE_RCFILE]
405
- .. [[[end]]] (checksum: 6cba18a0531f9d2f7af67e472b96eb6b )
405
+ .. [[[end]]] (checksum: 0ac91b0781d7146b87953f09090dab92 )
406
406
407
407
408
408
.. _cmd_erase :
@@ -421,15 +421,15 @@ To erase the collected data, use the **erase** command:
421
421
Erase previously collected coverage data.
422
422
423
423
Options:
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
+ --data-file=DATAFILE Base name of the data files to operate on. Defaults to
425
+ '.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
431
+ tried. [env: COVERAGE_RCFILE]
432
+ .. [[[end]]] (checksum: cfeaef66ce8d5154dc6914831030b46b )
433
433
434
434
If your configuration file indicates parallel data collection, **erase ** will
435
435
remove all of the data files.
@@ -496,6 +496,8 @@ as a percentage.
496
496
Only display data from lines covered in the given
497
497
contexts. Accepts Python regexes, which must be
498
498
quoted.
499
+ --data-file=INFILE Read coverage data for report generation from this
500
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
499
501
--fail-under=MIN Exit with a status of 2 if the total coverage is less
500
502
than MIN.
501
503
-i, --ignore-errors Ignore errors while reading source files.
@@ -514,15 +516,13 @@ as a percentage.
514
516
--skip-covered Skip files with 100% coverage.
515
517
--no-skip-covered Disable --skip-covered.
516
518
--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]
519
519
--debug=OPTS Debug options, separated by commas. [env:
520
520
COVERAGE_DEBUG]
521
521
-h, --help Get help on this command.
522
522
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
523
523
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
524
524
tried. [env: COVERAGE_RCFILE]
525
- .. [[[end]]] (checksum: 97565fdb6f1eefbeeb12d56151fa5e63 )
525
+ .. [[[end]]] (checksum: 2f8dde61bab2f44fbfe837aeae87dfd2 )
526
526
527
527
The ``-m `` flag also shows the line numbers of missing statements::
528
528
@@ -613,6 +613,8 @@ Click the keyboard icon in the upper right to see the complete list.
613
613
quoted.
614
614
-d DIR, --directory=DIR
615
615
Write the output files to DIR.
616
+ --data-file=INFILE Read coverage data for report generation from this
617
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
616
618
--fail-under=MIN Exit with a status of 2 if the total coverage is less
617
619
than MIN.
618
620
-i, --ignore-errors Ignore errors while reading source files.
@@ -630,15 +632,13 @@ Click the keyboard icon in the upper right to see the complete list.
630
632
--no-skip-covered Disable --skip-covered.
631
633
--skip-empty Skip files with no code.
632
634
--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]
635
635
--debug=OPTS Debug options, separated by commas. [env:
636
636
COVERAGE_DEBUG]
637
637
-h, --help Get help on this command.
638
638
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
639
639
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
640
640
tried. [env: COVERAGE_RCFILE]
641
- .. [[[end]]] (checksum: e3208f3b38a44ca81e0235e867f4fd1c )
641
+ .. [[[end]]] (checksum: e3a1a6e24ad9b303ba06d42880ed0219 )
642
642
643
643
The title of the report can be set with the ``title `` setting in the
644
644
``[html] `` section of the configuration file, or the ``--title `` switch on
@@ -691,6 +691,8 @@ compatible with `Cobertura`_.
691
691
Generate an XML report of coverage results.
692
692
693
693
Options:
694
+ --data-file=INFILE Read coverage data for report generation from this
695
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
694
696
--fail-under=MIN Exit with a status of 2 if the total coverage is less
695
697
than MIN.
696
698
-i, --ignore-errors Ignore errors while reading source files.
@@ -704,15 +706,13 @@ compatible with `Cobertura`_.
704
706
'coverage.xml'
705
707
-q, --quiet Don't print messages about what is happening.
706
708
--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]
709
709
--debug=OPTS Debug options, separated by commas. [env:
710
710
COVERAGE_DEBUG]
711
711
-h, --help Get help on this command.
712
712
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
713
713
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
714
714
tried. [env: COVERAGE_RCFILE]
715
- .. [[[end]]] (checksum: 3dc4450c0a723109f987c4b6f968be43 )
715
+ .. [[[end]]] (checksum: 8b239d89534be0b2c69489e10b1352a9 )
716
716
717
717
You can specify the name of the output file with the ``-o `` switch.
718
718
@@ -777,6 +777,8 @@ The **json** command writes coverage data to a "coverage.json" file.
777
777
Only display data from lines covered in the given
778
778
contexts. Accepts Python regexes, which must be
779
779
quoted.
780
+ --data-file=INFILE Read coverage data for report generation from this
781
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
780
782
--fail-under=MIN Exit with a status of 2 if the total coverage is less
781
783
than MIN.
782
784
-i, --ignore-errors Ignore errors while reading source files.
@@ -791,15 +793,13 @@ The **json** command writes coverage data to a "coverage.json" file.
791
793
--pretty-print Format the JSON for human readers.
792
794
-q, --quiet Don't print messages about what is happening.
793
795
--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]
796
796
--debug=OPTS Debug options, separated by commas. [env:
797
797
COVERAGE_DEBUG]
798
798
-h, --help Get help on this command.
799
799
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
800
800
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
801
801
tried. [env: COVERAGE_RCFILE]
802
- .. [[[end]]] (checksum: fdc9af899380fbb78599d08a70e564fc )
802
+ .. [[[end]]] (checksum: e53e60cb65d971c35d1db1c08324b72e )
803
803
804
804
You can specify the name of the output file with the ``-o `` switch. The JSON
805
805
can be nicely formatted by specifying the ``--pretty-print `` switch.
@@ -820,6 +820,8 @@ The **lcov** command writes coverage data to a "coverage.lcov" file.
820
820
Generate an LCOV report of coverage results.
821
821
822
822
Options:
823
+ --data-file=INFILE Read coverage data for report generation from this
824
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
823
825
--fail-under=MIN Exit with a status of 2 if the total coverage is less
824
826
than MIN.
825
827
-i, --ignore-errors Ignore errors while reading source files.
@@ -838,7 +840,7 @@ The **lcov** command writes coverage data to a "coverage.lcov" file.
838
840
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
839
841
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
840
842
tried. [env: COVERAGE_RCFILE]
841
- .. [[[end]]] (checksum: 4d078e4637e5b507cbb997803a0d4758 )
843
+ .. [[[end]]] (checksum: 16acfbae8011d2e3b620695c5fe13746 )
842
844
843
845
Other common reporting options are described above in :ref: `cmd_reporting `.
844
846
@@ -890,22 +892,22 @@ For example::
890
892
Options:
891
893
-d DIR, --directory=DIR
892
894
Write the output files to DIR.
895
+ --data-file=INFILE Read coverage data for report generation from this
896
+ file. Defaults to '.coverage'. [env: COVERAGE_FILE]
893
897
-i, --ignore-errors Ignore errors while reading source files.
894
898
--include=PAT1,PAT2,...
895
899
Include only files whose paths match one of these
896
900
patterns. Accepts shell-style wildcards, which must be
897
901
quoted.
898
902
--omit=PAT1,PAT2,... Omit files whose paths match one of these patterns.
899
903
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]
902
904
--debug=OPTS Debug options, separated by commas. [env:
903
905
COVERAGE_DEBUG]
904
906
-h, --help Get help on this command.
905
907
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
906
908
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
907
909
tried. [env: COVERAGE_RCFILE]
908
- .. [[[end]]] (checksum: aa41bad1cd4c08efc3276b5dca01dea3 )
910
+ .. [[[end]]] (checksum: fd7d8fbd2dd6e24d37f868b389c2ad6d )
909
911
910
912
Other common reporting options are described above in :ref: `cmd_reporting `.
911
913
0 commit comments