Skip to content

Commit 415bf7f

Browse files
committed
logging to check on failing tests
1 parent a7f749b commit 415bf7f

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

python_files/tests/pytestadapter/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def runner_with_cwd_env(
331331
os.mkfifo(pipe_name)
332332
#################
333333

334+
print("beginning run request")
334335
completed = threading.Event()
335336

336337
result = [] # result is a string array to store the data during threading

python_files/tests/pytestadapter/test_discovery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ def test_config_sub_folder():
308308
session node is correctly updated to the common path.
309309
"""
310310
folder_path = helpers.TEST_DATA_PATH / "config_sub_folder"
311+
print("running test_config_sub_folder")
311312
actual = helpers.runner_with_cwd(
312313
[
313314
"--collect-only",

python_files/vscode_pytest/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def pytest_load_initial_conftests(early_config, parser, args): # noqa: ARG001
9696
# set the reruns value, -1 if not set
9797
global FLAKY_MAX_RUNS
9898
FLAKY_MAX_RUNS = get_reruns_value(args)
99+
print("Plugin info[vscode-pytest]: global FLAKY_MAX_RUNS set to: ", FLAKY_MAX_RUNS)
99100

100101
# check if --rootdir is in the args
101102
for arg in args:
@@ -198,6 +199,7 @@ def pytest_exception_interact(node, call, report):
198199

199200
# flaky_max_runs != -1 means test is flaky
200201
if flaky_max_runs != -1 and exec_count <= flaky_max_runs:
202+
print("flaky test rerun: ", exec_count)
201203
return
202204
elif flaky_max_runs != -1 and exec_count > flaky_max_runs:
203205
print("Plugin info[vscode-pytest]: max reruns reached.")
@@ -709,6 +711,8 @@ def build_nested_folders(
709711
counter = 0
710712
max_iter = 100
711713
while iterator_path != session_node_path:
714+
print("iterator_path: ", iterator_path)
715+
print("session_node_path: ", session_node_path)
712716
curr_folder_name = iterator_path.name
713717
try:
714718
curr_folder_node: TestNode = created_files_folders_dict[os.fspath(iterator_path)]

0 commit comments

Comments
 (0)