We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pytest-repeat
--count
1 parent 046cb38 commit 3f7c742Copy full SHA for 3f7c742
cuda_pathfinder/tests/conftest.py
@@ -9,14 +9,12 @@ def pytest_configure(config):
9
config.custom_info = []
10
11
12
-def _cli_has_flag(args, flag):
13
- return any(arg == flag or arg.startswith(flag + "=") for arg in args)
14
-
15
16
def pytest_terminal_summary(terminalreporter, exitstatus, config): # noqa: ARG001
17
if not config.getoption("verbose"):
18
return
19
- if _cli_has_flag(config.invocation_params.args, "--iterations"):
+ if hasattr(config.option, "iterations"): # pytest-freethreaded runs all tests at least twice
+ return
+ if getattr(config.option, "count", 1) > 1: # pytest-repeat
20
21
22
if config.custom_info:
0 commit comments