File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 70
70
"mock" ,
71
71
"asyncmock" ,
72
72
PYTEST_VERSION ,
73
- "pytest-cov" ,
74
73
"pytest-asyncio" ,
74
+ "pytest-cov" ,
75
75
"pytest-mock" ,
76
+ "pytest-timeout" ,
76
77
]
77
78
UNIT_TEST_LOCAL_DEPENDENCIES : List [str ] = []
78
79
UNIT_TEST_DEPENDENCIES : List [str ] = []
@@ -228,6 +229,10 @@ def run_unit(session, install_test_extra):
228
229
session .run (
229
230
"py.test" ,
230
231
"--quiet" ,
232
+ # Any individual test taking longer than 1 mins will be terminated.
233
+ "--timeout=60" ,
234
+ # Log 20 slowest tests
235
+ "--durations=20" ,
231
236
f"--junitxml=unit_{ session .python } _sponge_log.xml" ,
232
237
"--cov=bigframes" ,
233
238
f"--cov={ tests_path } " ,
@@ -355,7 +360,7 @@ def run_system(
355
360
# Run py.test against the system tests.
356
361
pytest_cmd = [
357
362
"py.test" ,
358
- "--quiet " ,
363
+ "-v " ,
359
364
f"-n={ num_workers } " ,
360
365
# Any individual test taking longer than 15 mins will be terminated.
361
366
f"--timeout={ timeout_seconds } " ,
You can’t perform that action at this time.
0 commit comments