diff --git a/pythonFiles/vscode_pytest/run_pytest_script.py b/pythonFiles/vscode_pytest/run_pytest_script.py index e60ee91f096e..8005f3a32c0e 100644 --- a/pythonFiles/vscode_pytest/run_pytest_script.py +++ b/pythonFiles/vscode_pytest/run_pytest_script.py @@ -64,6 +64,14 @@ try: if test_ids_from_buffer: arg_array = ["-p", "vscode_pytest"] + args + test_ids_from_buffer + print("Running pytest with args: " + str(arg_array)) + pytest.main(arg_array) + else: + print( + "Error: No test ids received from stdin, could be an error or a run request without ids provided.", + ) + print("Running pytest with no test ids as args. Args being used: ", args) + arg_array = ["-p", "vscode_pytest"] + args pytest.main(arg_array) except json.JSONDecodeError: print("Error: Could not parse test ids from stdin")