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:
Sunil Mohan Adapa 2021-09-22 15:17:00 -07:00 committed by James Valleroy
parent 04af3473b7
commit 3c370d02ab
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
4 changed files with 10 additions and 11 deletions

View File

@ -1,9 +0,0 @@
# .coveragerc -- specifies execution options for coverage.py
[run]
branch = True
omit = */tests/*
[report]
precision = 2
omit = */tests/*

View File

@ -28,7 +28,7 @@ unit-tests:
- echo "tester:password" | chpasswd
- cp -r . /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
coverage: '/^TOTAL\s+.*\s+(\d+\.\d+%)$/'
artifacts:

View File

@ -13,5 +13,5 @@ Restrictions: needs-root
#
# 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, @

View File

@ -1,6 +1,14 @@
[tool.isort]
known_first_party = ["plinth"]
[tool.coverage.run]
branch = true
omit = ["*/tests/*"]
[tool.coverage.report]
precision = 2
omit = ["*/tests/*"]
[tool.pytest.ini_options]
addopts = "--ds=plinth.tests.data.django_test_settings"
markers = [