forked from openmsa/python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests
More file actions
executable file
·33 lines (28 loc) · 743 Bytes
/
run_tests
File metadata and controls
executable file
·33 lines (28 loc) · 743 Bytes
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
#!/bin/bash
usage() {
echo './run_tests [normal|html|verbose|quiet]'
exit 0
}
if [ -z "$1" ]; then
usage
fi
#PYTEST='python -m pytest --cov-report term-missing --disable-pytest-warnings --cov -x --no-cov-on-fail --cov-fail-under 100 --ff --isort --pydocstyle --ignore=required_pkgs'
PYTEST='python3 -m pytest --cov-report term-missing --disable-pytest-warnings --cov -x --no-cov-on-fail --cov-fail-under 90 --ff --isort --pydocstyle --ignore=required_pkgs'
case "$1" in
'html')
PYTEST="${PYTEST} --cov-report=html"
;;
'verbose')
PYTEST="${PYTEST} -v"
;;
'quiet')
PYTEST="${PYTEST} -q"
;;
'normal')
;;
'*')
usage
;;
esac
# Run
$PYTEST