-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.sh
executable file
·54 lines (47 loc) · 1.34 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
source venv/pandasio/bin/activate
echo "Executing tests..."
echo ""
coverage erase
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_binary
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_datetime_utils
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_numpy_compression
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_numpy_decompression
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_numpy_float_compression
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_numpy_float_rounding
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_numpy_utils
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_pandas_utils
coverage run -a --omit "venv/*" -m pandasio.utils.tests.test_validation
coverage run -a --omit "venv/*" -m pandasio.tests.test_pandabar
coverage run -a --omit "venv/*" -m pandasio.tests.test_pandabar_details_bytes
report_coverage=false
include_missing=false
for i in "$@"
do
case $i in
r|-r)
report_coverage=true
shift
;;
m|-m)
include_missing=true
shift
;;
*)
shift
;;
esac
done
if $report_coverage
then
echo "Coverage report:"
if $include_missing
then
coverage report -m
else
coverage report
fi
echo "End of coverage report."
fi
deactivate
echo "Tests completed."