Others (JUnit XML)
Reporting your JUnit XML tests to Currents in CI
Unit tests are usually executed in CI environments and can be reported to Currents by currents upload
command in @currents/cmd
package.
The process is the same for all the JUnit XML files that will be reported to Currents:
Generate test results into JUnit XML file/files
Merge all result XML files into a single JUnit XML report file called
currents.results.xml
Generate Instance files from
currents.results.xml
Call
currents upload
command and report the results.
We have included currents convert
command that allows Postman results.
This example repository has a vitest test suite executed in a sharded CI environment.
CI Build ID
See CI Build ID guide for details.
Git Information
In a CI environment, some variables are collected by the currents upload
command. The ci-build-id
will be automatically generated using the collected CI data.
The Git information will also be retrieved from the CI environment
Last updated