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
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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:
+1 −1
Original line number Diff line number Diff line
@@ -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"