Skip to content

Commit 82a6f59

Browse files
Fixed #895 Refactored test.sh, include missing test files in unit test (#896)
* update unit test * use for-loop for testing test functions, similar to test_coverage
1 parent 6c367ac commit 82a6f59

File tree

1 file changed

+5
-63
lines changed

1 file changed

+5
-63
lines changed

test.sh

Lines changed: 5 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -137,69 +137,11 @@ test_custom()
137137
test_unit()
138138
{
139139
echo "Testing Numba JIT Compiled Functions"
140-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_stump.py
141-
check_errs $?
142-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_core.py
143-
check_errs $?
144-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_config.py
145-
check_errs $?
146-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_stump.py tests/test_mstump.py tests/test_stumpi.py
147-
check_errs $?
148-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_scrump.py
149-
check_errs $?
150-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_stumped.py
151-
check_errs $?
152-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_mstumped.py
153-
check_errs $?
154-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_ostinato.py
155-
check_errs $?
156-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_ostinato.py
157-
check_errs $?
158-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_mpdist.py
159-
check_errs $?
160-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_motifs.py
161-
check_errs $?
162-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_mmotifs.py
163-
check_errs $?
164-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_mpdist.py
165-
check_errs $?
166-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_snippets.py
167-
check_errs $?
168-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_stimp.py
169-
check_errs $?
170-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_stimp.py
171-
check_errs $?
172-
# aamp
173-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_aamp.py
174-
check_errs $?
175-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aamp.py tests/test_maamp.py tests/test_scraamp.py tests/test_aampi.py
176-
check_errs $?
177-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_scraamp.py
178-
check_errs $?
179-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aamped.py
180-
check_errs $?
181-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_maamped.py
182-
check_errs $?
183-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aamp_ostinato.py
184-
check_errs $?
185-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_aamp_ostinato.py
186-
check_errs $?
187-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aampdist.py
188-
check_errs $?
189-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aamp_motifs.py
190-
check_errs $?
191-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aamp_mmotifs.py
192-
check_errs $?
193-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_aampdist.py
194-
check_errs $?
195-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aampdist_snippets.py
196-
check_errs $?
197-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_gpu_aamp_stimp.py
198-
check_errs $?
199-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_aamp_stimp.py
200-
check_errs $?
201-
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning tests/test_non_normalized_decorator.py
202-
check_errs $?
140+
for testfile in tests/test_*.py
141+
do
142+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning -W ignore::UserWarning $testfile
143+
check_errs $?
144+
done
203145
}
204146

205147
test_coverage()

0 commit comments

Comments
 (0)