Skip to content

Commit 92e4100

Browse files
committed
Updated pytest flags to report skips and additional summary
1 parent ac238b6 commit 92e4100

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

test.sh

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ test_custom()
108108
echo "Custom Test: $i / $max_iter"
109109
for testfile in "${custom_testfiles[@]}"
110110
do
111-
pytest -x -W ignore::DeprecationWarning $testfile
111+
pytest -rsx -W ignore::DeprecationWarning $testfile
112112
check_errs $?
113113
done
114114
done
@@ -122,66 +122,66 @@ test_unit()
122122
echo "Testing Numba JIT Compiled Functions"
123123
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_stump.py
124124
check_errs $?
125-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_core.py
125+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_core.py
126126
check_errs $?
127-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_config.py
127+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_config.py
128128
check_errs $?
129-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_stump.py tests/test_mstump.py tests/test_stumpi.py
129+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_stump.py tests/test_mstump.py tests/test_stumpi.py
130130
check_errs $?
131-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_scrump.py
131+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_scrump.py
132132
check_errs $?
133-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_stumped.py
133+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_stumped.py
134134
check_errs $?
135-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_mstumped.py
135+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_mstumped.py
136136
check_errs $?
137-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_ostinato.py
137+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_ostinato.py
138138
check_errs $?
139-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_ostinato.py
139+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_ostinato.py
140140
check_errs $?
141-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_mpdist.py
141+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_mpdist.py
142142
check_errs $?
143-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_motifs.py
143+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_motifs.py
144144
check_errs $?
145-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_mmotifs.py
145+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_mmotifs.py
146146
check_errs $?
147-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_mpdist.py
147+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_mpdist.py
148148
check_errs $?
149-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_snippets.py
149+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_snippets.py
150150
check_errs $?
151151
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_stimp.py
152152
check_errs $?
153-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_stimp.py
153+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_stimp.py
154154
check_errs $?
155155
# aamp
156156
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_aamp.py
157157
check_errs $?
158-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp.py tests/test_maamp.py tests/test_scraamp.py tests/test_aampi.py
158+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp.py tests/test_maamp.py tests/test_scraamp.py tests/test_aampi.py
159159
check_errs $?
160-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_scraamp.py
160+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_scraamp.py
161161
check_errs $?
162-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamped.py
162+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamped.py
163163
check_errs $?
164-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_maamped.py
164+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_maamped.py
165165
check_errs $?
166-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_ostinato.py
166+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_ostinato.py
167167
check_errs $?
168-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_aamp_ostinato.py
168+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_aamp_ostinato.py
169169
check_errs $?
170-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aampdist.py
170+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aampdist.py
171171
check_errs $?
172-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_motifs.py
172+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_motifs.py
173173
check_errs $?
174-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_mmotifs.py
174+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_mmotifs.py
175175
check_errs $?
176-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_aampdist.py
176+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_aampdist.py
177177
check_errs $?
178-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aampdist_snippets.py
178+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aampdist_snippets.py
179179
check_errs $?
180180
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_gpu_aamp_stimp.py
181181
check_errs $?
182-
pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_stimp.py
182+
pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests/test_aamp_stimp.py
183183
check_errs $?
184-
pytest -x -W ignore::DeprecationWarning tests/test_non_normalized_decorator.py
184+
pytest -rsx -W ignore::DeprecationWarning tests/test_non_normalized_decorator.py
185185
check_errs $?
186186
}
187187

@@ -192,14 +192,14 @@ test_coverage()
192192
export NUMBA_ENABLE_CUDASIM=1
193193

194194
# echo "Testing Python Functions"
195-
# pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests
195+
# pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning tests
196196
# check_errs $?
197197

198198
echo "Testing Code Coverage"
199199
coverage erase
200200
for testfile in tests/test_*.py
201201
do
202-
coverage run --append --source=. -m pytest -x -W ignore::RuntimeWarning -W ignore::DeprecationWarning $testfile
202+
coverage run --append --source=. -m pytest -rsx -W ignore::RuntimeWarning -W ignore::DeprecationWarning $testfile
203203
check_errs $?
204204
done
205205
coverage report -m --skip-covered --omit=setup.py,docstring.py

0 commit comments

Comments
 (0)