summaryrefslogtreecommitdiff
path: root/testing/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests/conftest.py')
-rw-r--r--testing/tests/conftest.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/testing/tests/conftest.py b/testing/tests/conftest.py
index 4d88072e..994b1610 100644
--- a/testing/tests/conftest.py
+++ b/testing/tests/conftest.py
@@ -41,6 +41,14 @@ def pytest_addoption(parser):
"--couch-url", type="string", default="http://127.0.0.1:5984",
help="the url for the couch server to be used during tests")
+ # the following option is only used in benchmarks, but has to be defined
+ # here due to how pytest discovers plugins during startup.
+ parser.addoption(
+ "--watch-resources", default=False, action="store_true",
+ help="whether to monitor CPU and memory percentages during test run. "
+ "**Warning**: enabling this will impact the time taken by the "
+ "benchmarked code, so use with caution!")
+
@pytest.fixture
def couch_url(request):