🚧 Try omit stub from coverage
continuous-integration/drone/push Build is passing Details

master
Alexis Feron 1 day ago
parent b7c4108bed
commit 1b2df687c5

@ -49,7 +49,7 @@ steps:
commands: commands:
- apt-get update && apt-get install -y libmagic1 - apt-get update && apt-get install -y libmagic1
- pip install -r tests/requirements.txt - pip install -r tests/requirements.txt
- pytest - pytest --cov=app --cov-config=.coveragerc
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$PLUGIN_SONAR_TOKEN -Dsonar.projectKey=SAE3A_MemoryMap-api -Dsonar.coverage.exclusions="tests/**" -Dsonar.python.version=3 -Dsonar.python.coverage.reportPaths="coverage.xml" - /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$PLUGIN_SONAR_TOKEN -Dsonar.projectKey=SAE3A_MemoryMap-api -Dsonar.coverage.exclusions="tests/**" -Dsonar.python.version=3 -Dsonar.python.coverage.reportPaths="coverage.xml"
settings: settings:
sonar_token: sonar_token:

@ -1,3 +1,3 @@
[pytest] [pytest]
addopts = --cov=app --cov-report=term-missing --cov-report=xml --cov-omit=app/stub.py addopts = --cov=app --cov-report=term-missing --cov-report=xml
testpaths = tests testpaths = tests
Loading…
Cancel
Save