@@ -136,15 +136,14 @@ There are many options:
136
136
--source=SRC1,SRC2,...
137
137
A list of directories or importable names of code to
138
138
measure.
139
- --timid Use a simpler but slower trace method. Try this if you
140
- get seemingly impossible results!
139
+ --timid Use the slower Python trace function core.
141
140
--debug=OPTS Debug options, separated by commas. [env:
142
141
COVERAGE_DEBUG]
143
142
-h, --help Get help on this command.
144
143
--rcfile=RCFILE Specify configuration file. By default '.coveragerc',
145
144
'setup.cfg', 'tox.ini', and 'pyproject.toml' are
146
145
tried. [env: COVERAGE_RCFILE]
147
- .. [[[end]]] (checksum: 05d15818e42e6f989c42894fb2b3c753 )
146
+ .. [[[end]]] (checksum: b1a0fffe2768fc142f1d97ae556b621d )
148
147
149
148
If you want :ref: `branch coverage <branch >` measurement, use the ``--branch ``
150
149
flag. Otherwise only statement coverage is measured.
@@ -203,6 +202,11 @@ If your coverage results seem to be overlooking code that you know has been
203
202
executed, try running coverage.py again with the ``--timid `` flag. This uses a
204
203
simpler but slower trace method, and might be needed in rare cases.
205
204
205
+ In Python 3.12 and above, you can try an experimental core based on the new
206
+ :mod: `sys.monitoring <python:sys.monitoring> ` module by defining a
207
+ ``COVERAGE_CORE=sysmon `` environment variable. This should be faster, though
208
+ plugins and dynamic contexts are not yet supported with it.
209
+
206
210
Coverage.py sets an environment variable, ``COVERAGE_RUN `` to indicate that
207
211
your code is running under coverage measurement. The value is not relevant,
208
212
and may change in the future.
0 commit comments