Skip to content

Commit

Permalink
test(test_all.sh): test script
Browse files Browse the repository at this point in the history
Add a script to fast test all the test cases
  • Loading branch information
ahy231 committed Sep 26, 2024
1 parent 848e575 commit 8282f2a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Find all Python files containing 'test' in their name from src and tests directories
test_files=$(find src tests -name '*test*.py')

# Loop through each test file and run it with sage
for file in $test_files; do
echo "Running tests in $file"
sage "$file"
echo "----------------------------------------"
done

echo "All tests completed."

0 comments on commit 8282f2a

Please sign in to comment.