-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrun_tests_and_coverage.sh
More file actions
executable file
·27 lines (27 loc) · 1.43 KB
/
run_tests_and_coverage.sh
File metadata and controls
executable file
·27 lines (27 loc) · 1.43 KB
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
#!/bin/sh
echo "-----------------------------------------------------------"
echo "Running Plugwise/Smile.py through pytest including coverage"
echo "-----------------------------------------------------------"
PYTHONPATH=`pwd` pytest -rpP --log-level debug tests/test_Smile.py --cov='.' --no-cov-on-fail
pytest=`echo $?`
echo "-----------------------------------------------------------------"
echo "Running Plugwise/Smile.py through flake8"
echo "-----------------------------------------------------------------"
PYTHONPATH=`pwd` flake8 --config=.flake8 Plugwise_Smile/*.py tests/*py
flake8=`echo $?`
echo "-----------------------------------------------------------------"
echo "Running Plugwise/Smile.py through pydocstyle"
echo "-----------------------------------------------------------------"
PYTHONPATH=`pwd` pydocstyle Plugwise_Smile/*.py tests/*py
pydocs=`echo $?`
echo "-----------------------------------------------------------------"
echo "Running Plugwise/Smile.py through pylint (HA-core + own disables)"
echo "-----------------------------------------------------------------"
PYTHONPATH=`pwd` pylint --rcfile=pylintrc Plugwise_Smile/*.py
pylint=`echo $?`
echo "-----------------------------------------------------------------"
echo "pytest exit code: ${pytest}"
echo "flake8 exit code: ${flake8}"
echo "pydocs exit code: ${pydocs}"
echo "pylint exit code: ${pylint}"
echo "-----------------------------------------------------------------"