mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
pyproject.toml: Merge contents of .converagerc
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
04af3473b7
commit
3c370d02ab
@ -1,9 +0,0 @@
|
|||||||
# .coveragerc -- specifies execution options for coverage.py
|
|
||||||
|
|
||||||
[run]
|
|
||||||
branch = True
|
|
||||||
omit = */tests/*
|
|
||||||
|
|
||||||
[report]
|
|
||||||
precision = 2
|
|
||||||
omit = */tests/*
|
|
||||||
@ -28,7 +28,7 @@ unit-tests:
|
|||||||
- echo "tester:password" | chpasswd
|
- echo "tester:password" | chpasswd
|
||||||
- cp -r . /home/tester/plinth
|
- cp -r . /home/tester/plinth
|
||||||
- chown -R tester:tester /home/tester/plinth
|
- chown -R tester:tester /home/tester/plinth
|
||||||
- su -c "cd ~/plinth;PYTHONPATH='.' py.test-3 --cov=plinth --cov-report=html:/home/tester/plinth/htmlcov --cov-config=.coveragerc --cov-report=term" tester
|
- su -c "cd ~/plinth;PYTHONPATH='.' py.test-3 --cov=plinth --cov-report=html:/home/tester/plinth/htmlcov --cov-report=term" tester
|
||||||
- cp -r /home/tester/plinth/htmlcov test-coverage-report
|
- cp -r /home/tester/plinth/htmlcov test-coverage-report
|
||||||
coverage: '/^TOTAL\s+.*\s+(\d+\.\d+%)$/'
|
coverage: '/^TOTAL\s+.*\s+(\d+\.\d+%)$/'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
2
debian/tests/control
vendored
2
debian/tests/control
vendored
@ -13,5 +13,5 @@ Restrictions: needs-root
|
|||||||
#
|
#
|
||||||
# Run unit and integration tests on installed files.
|
# Run unit and integration tests on installed files.
|
||||||
#
|
#
|
||||||
Test-Command: PYTHONPATH='/usr/lib/python3/dist-packages/plinth/' py.test-3 -p no:cacheprovider --cov=plinth --cov-report=html:debci/htmlcov --cov-config=.coveragerc --cov-report=term
|
Test-Command: PYTHONPATH='/usr/lib/python3/dist-packages/plinth/' py.test-3 -p no:cacheprovider --cov=plinth --cov-report=html:debci/htmlcov --cov-report=term
|
||||||
Depends: git, python3-pytest, python3-pytest-cov, python3-pytest-django, @
|
Depends: git, python3-pytest, python3-pytest-cov, python3-pytest-django, @
|
||||||
|
|||||||
@ -1,6 +1,14 @@
|
|||||||
[tool.isort]
|
[tool.isort]
|
||||||
known_first_party = ["plinth"]
|
known_first_party = ["plinth"]
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
branch = true
|
||||||
|
omit = ["*/tests/*"]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
precision = 2
|
||||||
|
omit = ["*/tests/*"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--ds=plinth.tests.data.django_test_settings"
|
addopts = "--ds=plinth.tests.data.django_test_settings"
|
||||||
markers = [
|
markers = [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user