Report test results generated by Webdriver.io to Currents
- Get a Record key and Project ID from Currents dashboard
- Run wdio tests using
wdio run
npx wdio run ./wdio.conf.js
- Combine the report files using the combine script Wdio will generate one JUnit XML file per spec file (Two files in this example) and must be combined as it belongs to the same group.
node ../../scripts/combineResults.js
This will generate a file named combined-results.xml
with the combined results of all the spec files.
- Convert the combined JUnit XML test results to Currents-compatible format
npx currents convert \
--input-format=junit \
--input-file=combined-results.xml \
--framework=wdio \
--framework-version=v11.2.0
- Upload the results to Currents
npx currents upload --key=your-record-key --project-id=currents-project-id
# Run Wdio tests
❯ npx wdio run ./wdio.conf.js
# Combine Wdio test results
❯ node ../../scripts/combineResults.js
# Convert Wdio combined results to Currents results
❯ npx currents convert \
--input-format=junit \
--input-file=combined-results.xml \
--framework=wdio \
--framework-version=v11.2.0
[currents] Convertion files: combined-results.xml
[currents] Conversion completed, report saved to: /Users/agoldis/currents-junit-xml-example/packages/postman/.currents/2024-11-27T21-14-06-189Z-24038566-8abf-42b5-910d-2af57dd4d3c6
# Report the results to Currents
❯ npx currents upload --key=xxx --project-id=yyy
Currents config: {
projectId: 'kLfVfq',
recordKey: '*****',
removeTitleTags: false,
disableTitleTags: false,
debug: false
}
Report directory: /Users/agoldis/currents-junit-xml-example/packages/postman/.currents/2024-11-27T21-14-06-189Z-24038566-8abf-42b5-910d-2af57dd4d3c6
[Tests] Run created: https://app.currents.dev/run/178ad580f51fc637
🎉