summaryrefslogtreecommitdiff
path: root/testing/tests/perf/conftest.py
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-07-25 21:34:23 -0300
committerdrebs <drebs@leap.se>2016-08-01 21:09:04 -0300
commitde5cd462cc3f04275e22d9267ecb8e6c2b23dfda (patch)
treec5b89e91b9629c09fa144c614bf776af3962720b /testing/tests/perf/conftest.py
parent76acb8f39a32b6b61f00af571bae9bd48c0a5d62 (diff)
[test] allow passing number of docs on command line on perf tests
Diffstat (limited to 'testing/tests/perf/conftest.py')
-rw-r--r--testing/tests/perf/conftest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/tests/perf/conftest.py b/testing/tests/perf/conftest.py
index 85a48059..463c791a 100644
--- a/testing/tests/perf/conftest.py
+++ b/testing/tests/perf/conftest.py
@@ -26,6 +26,12 @@ def pytest_addoption(parser):
help="the url for the couch server to be used during tests")
+def pytest_addoption(parser):
+ parser.addoption(
+ "--num-docs", type="int", default=100,
+ help="the number of documents to use in performance tests")
+
+
#
# default options for all tests
#