Skip to content

Commit 9d91209

Browse files
committed
clarify error here
1 parent f234a04 commit 9d91209

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

codeflash/tracer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ def main(args: Namespace | None = None) -> ArgumentParser:
103103
replay_test_paths = []
104104
if parsed_args.module and unknown_args[0] == "pytest":
105105
pytest_splits, test_paths = pytest_split(unknown_args[1:])
106+
if pytest_splits is None or test_paths is None:
107+
console.print(f"❌ Could not find test files in the specified paths: {unknown_args[1:]}")
108+
console.print(f"Current working directory: {Path.cwd()}")
109+
console.print("Please ensure the test directory exists and contains test files.")
110+
sys.exit(1)
106111

107112
if len(pytest_splits) > 1:
108113
processes = []

0 commit comments

Comments
 (0)