Skip to content

Commit e93db54

Browse files
committed
Set default duration for slowest tests in pytest configuration
1 parent 9e6ef77 commit e93db54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plotpy/tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def pytest_addoption(parser):
3737

3838
def pytest_configure(config):
3939
"""Configure pytest based on command line options."""
40+
if config.option.durations is None:
41+
config.option.durations = 10 # Default to showing 10 slowest tests
4042
config.addinivalue_line(
4143
"markers",
4244
"requires_display: mark test as requiring a display "

0 commit comments

Comments
 (0)