Update test coverage commands and configs (#2225)
This commit is contained in:
Родитель
c29b7c6384
Коммит
66032063bf
|
@ -3,6 +3,8 @@ include =
|
|||
./*.py
|
||||
omit =
|
||||
./lib/*
|
||||
./cs-env/*
|
||||
./*_test.py
|
||||
[report]
|
||||
exclude_lines =
|
||||
# Have to re-enable the standard pragma
|
||||
|
|
|
@ -29,5 +29,8 @@ static/js/
|
|||
.coverage
|
||||
htmlcov
|
||||
|
||||
# Web test runner coverage report
|
||||
coverage
|
||||
|
||||
# venv directory
|
||||
cs-env
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
"stop": "killall cs-env/bin/python3.9",
|
||||
"test": "(npm run start-emulator > /dev/null 2>&1 &); sleep 6; curl --retry 4 http://localhost:15606/ --retry-connrefused; npm run do-tests; status=$?; npm run stop-emulator; exit $status",
|
||||
"webtest": "web-test-runner \"static/**/*_test.js\" --node-resolve --playwright --browsers chromium firefox",
|
||||
"webtest-coverage": "web-test-runner \"static/**/*_test.js\" --node-resolve --playwright --coverage --browsers chromium firefox",
|
||||
"do-coverage": "coverage3 erase && coverage3 run -m unittest discover -p '*_test.py' -b && coverage3 html",
|
||||
"coverage": "source cs-env/bin/activate; (npm run start-emulator > /dev/null 2>&1 &); sleep 3; curl --retry 4 http://localhost:15606/ --retry-connrefused; npm run do-coverage; npm run stop-emulator",
|
||||
"view-coverage": "pushd htmlcov/; python3 -m http.server 8080; popd",
|
||||
|
|
Загрузка…
Ссылка в новой задаче