@currents/node-test-reporter

Currents Reporter for Node.js Testing Framework

Requirements

  • Node.js v18.20.4+

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 the Report

Run currents convert command to covert the generated report into a format compatible with Currents.

> npx currents convert \
--framework=node \
--input-format=junit \
--input-file=./report.xml

Uploading the Results

Upload the results to Currents, specify the projectId and the Record Key. Read more about currents upload command.

npx currents upload --key=XXX --project-id=C3lBM6

Last updated