Skip to content

Commit 03170f6

Browse files
committed
add timeout & more logging
1 parent 415bf7f commit 03170f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python_files/tests/pytestadapter/test_discovery.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,12 @@ def test_symlink_root_dir():
247247

248248

249249
def test_pytest_root_dir():
250+
250251
"""Test to test pytest discovery with the command line arg --rootdir specified to be a subfolder of the workspace root.
251252
252253
Discovery should succeed and testids should be relative to workspace root.
253254
"""
255+
print("running test_pytest_root_dir")
254256
rd = f"--rootdir={helpers.TEST_DATA_PATH / 'root' / 'tests'}"
255257
actual = helpers.runner_with_cwd(
256258
[
@@ -279,6 +281,7 @@ def test_pytest_config_file():
279281
280282
Discovery should succeed and testids should be relative to workspace root.
281283
"""
284+
print("running test_pytest_config_file")
282285
actual = helpers.runner_with_cwd(
283286
[
284287
"--collect-only",
@@ -301,6 +304,7 @@ def test_pytest_config_file():
301304
), f"Tests tree does not match expected value. \n Expected: {json.dumps(expected_discovery_test_output.root_with_config_expected_output, indent=4)}. \n Actual: {json.dumps(actual_item.get('tests'), indent=4)}"
302305

303306

307+
@pytest.mark.timeout(60)
304308
def test_config_sub_folder():
305309
"""Here the session node will be a subfolder of the workspace root and the test are in another subfolder.
306310

0 commit comments

Comments
 (0)