From 3c39546421a8cdf59e5c34cc05040fe6bf12c563 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 7 Jan 2021 17:45:47 +0200 Subject: [PATCH] Better capture of tests junit output. - Fix missing output of bats in CI. - Output doctests to junit only in CI. --- .gitlab-ci.yml | 4 ++-- Pipfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b9f0742..f6cac6e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/Pipfile b/Pipfile index b5e9a90..df5ea8a 100644 --- a/Pipfile +++ b/Pipfile @@ -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" -- GitLab