forked from ria-ee/X-Road-opmonitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests.sh
35 lines (27 loc) · 1021 Bytes
/
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
#!/bin/bash
# sudo python3 -m pip install pytest
# pip install pytest-pep8
export REPORTS_RUN_ENV="REPORTS_TEST"
set -e
# Run Pep8 Tests
python3 -m pytest --pep8 -m pep8 collector_module --ignore=collector_module/external_files
python3 -m pytest --pep8 -m pep8 corrector_module
python3 -m pytest --pep8 -m pep8 reports_module
# python3 -m pytest --pep8 -m pep8 analysis_module/analyzer_ui
# python3 -m pytest --pep8 -m pep8 analysis_module/analyzer
python3 -m pytest --pep8 -m pep8 opendata_module/anonymizer
# echo "Test Corrector"
# python3 -m pytest corrector_module
echo "Test Reports"
python3 -m pytest reports_module
# python3 -m pytest analysis_module/analyzer_ui
# python3 -m pytest analysis_module/analyzer
python3 -m pytest opendata_module/anonymizer
# python3 -m pytest opendata_module/interface
# Run CI Tests
if [[ $1 == 'CI' ]] ; then
echo "Test integration"
python3 -m pytest integration_tests
fi
# Test Open Data interface's input validation
# python3 -m pytest opendata_module/interface/