From 16ef35f9be4f7b225750fac576e0f6245a100752 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 27 Dec 2019 17:35:51 -0500 Subject: Warn if two things change the dynamic context. #901 --- doc/cmd.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/cmd.rst') diff --git a/doc/cmd.rst b/doc/cmd.rst index 8b0e2f24..3933c567 100644 --- a/doc/cmd.rst +++ b/doc/cmd.rst @@ -179,6 +179,12 @@ could affect the measurement process. The possible warnings include: are meant to focus measurement on a particular part of your source code, so ``--include`` is ignored in favor of ``--source``. +* ``Conflicting dynamic contexts (dynamic-conflict)`` |br| + The ``[run] dynamic_context`` option is set in the configuration file, but + something (probably a test runner plugin) is also calling the + :meth:`.Coverage.switch_context` function to change the context. Only one of + these mechanisms should be in use at a time. + Individual warnings can be disabled with the `disable_warnings `_ configuration setting. To silence "No data was collected," add this to your .coveragerc file:: -- cgit v1.2.1