@currents/node-test-reporter
Currents Reporter for Node.js Testing Framework
Requirements
Node.js
v20+, required by@currents/cmd2.x
Setup
npm install @currents/node-test-reporter @currents/cmd --save-devUsage
Run the Tests
Run Node.js and set @currents/node-test-reporter reporter. The result is a refined JUnit XML that as the necessary information about the test results. More information is available here.
> node --test \
--test-reporter=@currents/node-test-reporter \
--test-reporter-destination=./report.xml \
**.test.mjsConverting and Uploading the Results
Run currents run upload with --input-format junit to convert the report to the Currents format and upload it. Specify the project ID and the Record Key. Read more in Upload JUnit XML reports.
npx currents run upload \
--key=XXX \
--project-id=C3lBM6 \
--framework=node \
--input-format=junit \
--input-file=./report.xmlLast updated
Was this helpful?