Skip to content

Commit

Permalink
Enable test reporting (pythonindia#777)
Browse files Browse the repository at this point in the history
Add test reporting flags for pytest
Mount temp docker volume for running tests

Co-authored-by: Ananya Maiti <[email protected]>
  • Loading branch information
ananyo2012 and Ananya Maiti authored Jun 21, 2023
1 parent 22e5e50 commit e154cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ htmlcov/
.pytest_cache/
nosetests.xml
coverage.xml
temp/

# Translations
*.mo
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ services:
build:
context: .
dockerfile: Dockerfile
command: sh -c pytest --cov=unit --cov=integrations --cov-report=html -v
volumes:
- ./temp:/temp
command: sh -c 'pytest --junitxml=/temp/testresults/test-results.xml --cov=junction --cov-report=xml:/temp/testresults/coverage.xml -v'

0 comments on commit e154cc7

Please sign in to comment.