Skip to content

Commit 3e5c6cb

Browse files
committed
don't do benchmarking in default pytest runs
1 parent 4c2a935 commit 3e5c6cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ run-pytest = "run"
183183
run-verbose = "run-coverage --verbose"
184184
run-mypy = "mypy src"
185185
run-hypothesis = "run-coverage -nauto --run-slow-hypothesis tests/test_properties.py tests/test_store/test_stateful*"
186+
run-benchmark = "pytest --benchmark-enable tests/benchmarks"
186187
list-env = "pip list"
187188

188189
[tool.hatch.envs.gputest]
@@ -407,7 +408,12 @@ doctest_optionflags = [
407408
"IGNORE_EXCEPTION_DETAIL",
408409
]
409410
addopts = [
410-
"--durations=10", "-ra", "--strict-config", "--strict-markers",
411+
"--benchmark-columns", "min,mean,stddev,outliers,rounds,iterations",
412+
"--benchmark-group-by", "group",
413+
"--benchmark-warmup", "on",
414+
"--benchmark-disable", # run benchmark routines but don't do benchmarking
415+
"--durations", "10",
416+
"-ra", "--strict-config", "--strict-markers",
411417
]
412418
filterwarnings = [
413419
"error",

0 commit comments

Comments
 (0)