Skip to content

Commit 0f6f791

Browse files
committed
run-test-watch.sh
1 parent 9d4c7fb commit 0f6f791

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/run-test-watch.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$0")"
5+
cd ..
6+
7+
# Exclude slow tests from pytest-watch
8+
# Add all the extra arguments to the end
9+
# Example to run a single test
10+
# poetry run ./run-test-watch.sh -k test_cohort_is_shuffle_no_duplicate
11+
ptw $(ls tests/test_* | grep -Ev '(test_stats.py|test_prep.py)') hypyp -- -s $@
12+

0 commit comments

Comments
 (0)