Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add info about junit xml report #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ Your project will be executed with following command:
pip install -e . && python3 setup.py pytest
```

When configuring your setup.cfg ensure that the junit `tests.xml` report generation is enabled.
These two options should be present:
```ini
addopts=--junitxml=tests.xml
junit_family=legacy
```

Check out our [setup.py](setup.py) and [setup.cfg](setup.cfg) files.

## Automatic assessment
Expand Down
10 changes: 4 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
[aliases]
test=pytest
nosetests=pytest

[tool:pytest]
timeout = 30
python_files = tests.py test_*.py *_tests.py
addopts = --junitxml=nosetests.xml
junit_family = legacy
timeout=30
python_files=tests.py test_*.py *_tests.py
addopts=--junitxml=tests.xml
junit_family=legacy