Others
Integrate Currents with any framework by using JUnit compatible XML reporters
Last updated
Integrate Currents with any framework by using JUnit compatible XML reporters
Last updated
Currents has flagship integrations with various testing frameworks via the dedicated reporters (like Playwright, Jest and Cypress).
Integration with other frameworks is possible by uploading a JUnit XML (or compatible) test results report to Currents using our CLI utilities from @currents/cmd package.
JUnit is an XML document used to represent the outcomes of automated tests. It is widely adopted for test reporting in CI/CD pipelines, allowing CI tools like Jenkins, GitHub Actions, ands other to parse and display test results.
JUnit reports typically contains information about:
Test suites - groups of test cases (e.g., a set of related tests)
Test cases - individual test scenarios with details like execution time, status (pass/fail), and optional logs (e.g., errors or skipped messages)
See a detailed example of a complete JUnit XML file.
A typical workflow for reporting JUnit XML results to Currents:
Run currents convert command to convert JUnit XML report to a format compatible with Currents
Run currents uploadcommand to send the results to Currents for processing
Install @currents/cmd package
Refer to your framework documentation or contact Currents support for help with enabling JUnit reporter for your framework
Framework | Instructions |
---|---|
Vitest | |
NodeJS Test Runner | |
WebdriverIO | |
Cypress | |
Postman (Newman) |
When running the tests, make sure to save the results at a known location - you will need to provide path to the generated files later.
Use currents convert command to convert JUnit format to internal Currents format. Refer to currents convert documentation for the list of supported formats and frameworks.
For example:
Use currents upload command to send the results to Currents. Get a Record key and Project ID from Currents dashboard.
Check out the example repository that demonstrates how to generate and report test results from various testing frameworks to Currents.