From 7bc1f9300f3da31f5b283b0de20f30b4d9cdd05d Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Tue, 8 Aug 2023 08:24:24 -0400 Subject: [PATCH] try to get test results loaded into circleci --- .circleci/config.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fe1f5f8cb..ede1cdb8f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -170,9 +170,17 @@ jobs: python misc/build_helpers/show-tool-versions.py - "run": - name: "Run Unit Tests" + name: "Install Dependencies" command: | - python -m tox -e py311-coverage + python -m pip install .[testenv] .[test] + + - "run": + name: "Run Unit Tests" + environment: + SUBUNITREPORTER_OUTPUT_PATH: "test-results.subunit2" + PYTHONUNBUFFERED: "1" + command: | + python -b -m coverage run -m twisted.trial --reporter=subunitv2-file --rterrors allmydata - "run": name: "Upload Coverage" @@ -182,6 +190,14 @@ jobs: python -m pip install coveralls python -m coveralls + - "run": + name: "Convert Result Log" + command: | + Get-Content -Path test-results.subunit2 -Raw | subunit2junitxml | Out-File -FilePath test-results.xml + + - "store_artifacts": + path: "test-results.xml" + pyinstaller: docker: - <<: *DOCKERHUB_AUTH