Generates coverage.xml report

This commit is contained in:
Aaron Louie 2020-02-12 11:04:04 -05:00
parent a5894b1745
commit 0664fec141
3 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -235,3 +235,4 @@ fabric.properties
*.db
postgres/var/
.env
coverage.xml

View File

@ -4,3 +4,4 @@ sonar.host.url=https://sonarcloud.io
sonar.exclusions=docs/**,config/**,instance/**,migrations/**,postgres/**,readme_images/**,schema/**,templates/**
sonar.sources=crc
sonar.test.inclusions=tests
sonar.python.coverage.reportPaths=coverage.xml

View File

@ -27,6 +27,7 @@ install:
# command to run tests
script:
- pytest
- coverage xml -i
- sonar-scanner
# Would be better to directly test the docker image, may require setting