For the complete documentation index, see llms.txt. This page is also available as Markdown.

@currents/node-test-reporter

Currents Reporter for Node.js Testing Framework

Requirements

  • Node.js v20+, required by @currents/cmd 2.x

Setup

npm install @currents/node-test-reporter @currents/cmd --save-dev

Usage

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.mjs

Converting 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.xml

Last updated

Was this helpful?