Skip to content
Snippets Groups Projects
Commit 3c395464 authored by nimrod's avatar nimrod
Browse files

Better capture of tests junit output.

- Fix missing output of bats in CI.
- Output doctests to junit only in CI.
parent 746ca6f8
No related branches found
No related tags found
No related merge requests found
Pipeline #409 passed
......@@ -32,8 +32,8 @@ test:
- pip install pipenv
- pipenv install --dev --python=$version
script:
- pipenv run bats
- pipenv run doctest
- pipenv run bats | tee results.tap
- pipenv run doctest --junit-xml results/doctest.xml
after_script:
- juxr tap --name bats --output results/ -- cat results.tap
variables:
......
......@@ -17,4 +17,4 @@ clean = "git clean -fdX"
upload = "twine upload"
bats = "bats -t tests/"
check = "sh -c 'rm -rf dist/ && python setup.py bdist_wheel && twine check dist/*'"
doctest = "pytest --doctest-modules --junit-xml results/doctest.xml"
doctest = "pytest --doctest-modules"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment