Skip to content

Commit e154cc7

Browse files
ananyo2012Ananya Maiti
andauthored
Enable test reporting (#777)
Add test reporting flags for pytest Mount temp docker volume for running tests Co-authored-by: Ananya Maiti <[email protected]>
1 parent 22e5e50 commit e154cc7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ htmlcov/
4747
.pytest_cache/
4848
nosetests.xml
4949
coverage.xml
50+
temp/
5051

5152
# Translations
5253
*.mo

docker-compose.test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ services:
55
build:
66
context: .
77
dockerfile: Dockerfile
8-
command: sh -c pytest --cov=unit --cov=integrations --cov-report=html -v
8+
volumes:
9+
- ./temp:/temp
10+
command: sh -c 'pytest --junitxml=/temp/testresults/test-results.xml --cov=junction --cov-report=xml:/temp/testresults/coverage.xml -v'

0 commit comments

Comments
 (0)