Skip to content

Commit fbd9db8

Browse files
committed
Set default duration for slowest tests in pytest configuration
1 parent d8f8c45 commit fbd9db8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

datalab/tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ def pytest_report_header(config): # pylint: disable=unused-argument
110110

111111
def pytest_configure(config):
112112
"""Add custom markers to pytest."""
113+
if config.option.durations is None:
114+
config.option.durations = 10 # Default to showing 10 slowest tests
113115
config.addinivalue_line(
114116
"markers",
115117
"validation: mark a test as a validation test (ground truth or analytical)",

0 commit comments

Comments
 (0)