Make the coverage report touch all files
This commit is contained in:
parent
1c871749b0
commit
7665d45e09
6 changed files with 14 additions and 8 deletions
4
.coveragerc
Normal file
4
.coveragerc
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
[run]
|
||||||
|
concurrency = multiprocessing, thread
|
||||||
|
parallel = true
|
||||||
|
sigterm = true
|
||||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -48,6 +48,7 @@ htmlcov/
|
||||||
.cache
|
.cache
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
coverage.xml
|
coverage.xml
|
||||||
|
report.xml
|
||||||
pytest_report.xml
|
pytest_report.xml
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
|
|
@ -82,4 +83,4 @@ openflexure_microscope/cobertura.xml
|
||||||
/openflexure_settings/
|
/openflexure_settings/
|
||||||
|
|
||||||
# web app build
|
# web app build
|
||||||
/src/openflexure_microscope_server/static/
|
/src/openflexure_microscope_server/static/
|
||||||
|
|
|
||||||
|
|
@ -104,11 +104,8 @@ pytest:
|
||||||
stage: testing
|
stage: testing
|
||||||
extends: .python
|
extends: .python
|
||||||
script:
|
script:
|
||||||
- >
|
- pytest
|
||||||
pytest --cov --cov-report term
|
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
|
||||||
--cov-report xml:coverage.xml
|
|
||||||
--junitxml=report.xml
|
|
||||||
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
|
|
||||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||||
artifacts:
|
artifacts:
|
||||||
when: always
|
when: always
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,14 @@ target-version = "py311"
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = [
|
addopts = [
|
||||||
"--import-mode=importlib",
|
"--import-mode=importlib",
|
||||||
|
"--cov=openflexure_microscope_server",
|
||||||
|
"--cov-report=term",
|
||||||
|
"--cov-report=xml:coverage.xml",
|
||||||
|
"--junitxml=report.xml",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
norecursedirs = [".git", "build", "node_modules"]
|
||||||
|
|
||||||
[tool.ruff.format]
|
[tool.ruff.format]
|
||||||
# Use native line endings for all files
|
# Use native line endings for all files
|
||||||
line-ending = "native"
|
line-ending = "native"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
[pytest]
|
|
||||||
norecursedirs = .git build node_modules
|
|
||||||
0
src/openflexure_microscope_server/things/__init__.py
Normal file
0
src/openflexure_microscope_server/things/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue