Aggregates test results from multiple CircleCI pipeline steps
When running builds that depend on external pipelines to complete (such as Project Helix Smoke Tests) it is inconvenient to find the correct URL for the workflow in the CircleCI log messages, open it, find the failed build job and check the test results there. With this utility you can use the CircleCI API to aggregate test results from external pipeline runs (multiple jobs) and report them in the JUnit test format that CircleCI expects.
$ npm install @adobe/cci-test-aggregator
$ export SMOKE_TEST_TOKEN="<your circleci token here>"
# Replace the URL with your Pipeline URL
$ npx @adobe/cci-test-aggregator https://circleci.com/api/v2/pipeline/477b38d1-faf7-4156-a48a-9aba71acbc4a/workflow
$ cat junit/junit.xml
You can now use the junit
folder as test artifact in CircleCI.
$ npm install
$ npm test
$ npm run lint