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
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -48,6 +48,7 @@ htmlcov/
|
|||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
report.xml
|
||||
pytest_report.xml
|
||||
|
||||
# Translations
|
||||
|
|
|
|||
|
|
@ -104,10 +104,7 @@ pytest:
|
|||
stage: testing
|
||||
extends: .python
|
||||
script:
|
||||
- >
|
||||
pytest --cov --cov-report term
|
||||
--cov-report xml:coverage.xml
|
||||
--junitxml=report.xml
|
||||
- pytest
|
||||
# --gitlab-code-quality-report=pytest-warnings.json # can restore when it installs ok
|
||||
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
|
||||
artifacts:
|
||||
|
|
|
|||
|
|
@ -73,8 +73,14 @@ target-version = "py311"
|
|||
[tool.pytest.ini_options]
|
||||
addopts = [
|
||||
"--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]
|
||||
# Use native line endings for all files
|
||||
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