@currents/cmd
The package has CLI commands and tools for Currents platform
Requirements
Create an account at https://app.currents.dev
Obtain the Project Id (see Project Settings) and the Record Key
Setup
npm install @currents/cmd --save-devUsage
npx currents upload --project-id=xxx --key=yyycurrents will upload the results, as follows:
use
process.env.CURRENTS_REPORT_DIRor--reportDirto read the results previously generated by one of supported reporters, otherwiseuse the most recently created directory named
.currents-report-[timestamp]-[uuidv4()]in the current working directory
Example
Configuration
All options apart from --project-id and --key are optional. Use --help flag to list the available options.
-k, --keyThe record key to record the results to Currents. Read more: Record Key
Environment variable:
CURRENTS_RECORD_KEYType:
string
-p, --project-idThe id of the project for reporting
Environment variable:
CURRENTS_PROJECT_IDType:
string
--ci-build-idThe id of the build to record the test run. Read more CI Build ID
Environment variable:
CURRENTS_CI_BUILD_IDType:
stringDefault value:
auto:[random-string]
--report-dirDirectory with the test results generated by one of currents reporters
Environment variable:
CURRENTS_REPORT_DIRType:
stringDefault value:
.currents-report-[timestamp]-[uuidv4]
-t, --tagComma-separated tag(s) to attach to the recorded run
Environment variable:
CURRENTS_TAGType:
string
--disable-title-tagsDisable extracting tags from test title, e.g.
Test name @smokewould not be tagged withsmokeEnvironment variable:
CURRENTS_DISABLE_TITLE_TAGSType:
booleanDefault value:
false
--remove-title-tagsRemove tags from test names in Currents, e.g.
Test name @smokebecomesTest namein the dashboardEnvironment variable:
CURRENTS_REMOVE_TITLE_TAGSType:
booleanDefault value:
false
--debugEnable debug logs
Environment variable:
DEBUG=currents*Type:
boolean
Troubleshooting
Run the CLI command with the --debug argument or prefix it with DEBUG="currents*" to obtain detailed information about the command execution process.
Last updated
Was this helpful?