1.1.2 • Published 7 months ago

@currents/cmd v1.1.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
-
Last release
7 months ago

@currents/cmd

CLI tool for Currents - a cloud platform for debugging, troubleshooting, and analyzing CI tests.

Installation

npm install @currents/cmd --save-dev

Usage

  • Generate test results with one of the supported reporters
  • Upload the results
npx currents upload --project-id=xxx --key=yyy

ā„¹ļø Get familiar with CI Build ID šŸ“– before using currents in CI. It is important to set the CI Build ID explicitly using --ci-build-id option, if you are using CI sharding or multiple CI machines to parallelize your tests. If not set explicitly, the CI Build ID will be set to a random value.

Notes

Obtain --project-id and --key from https://app.currents.dev to identify the project and associate the results with your organization.

currents will upload the results, as follows:

  • use process.env.CURRENTS_REPORT_DIR or --reportDir to read the results previously generated by one of supported reporters, otherwise
  • use the most recently created directory named as .currents/[timestamp]-[uuidv4()] in the current working directory

Configuration

Please note that all options apart from --project-id and --key are optional.

PropertyTypeDescriptionEnvironment variableDefault
-k, --keystringThe record key to record the results to Currents. Read more: https://currents.dev/readme/guides/record-keyCURRENTS_RECORD_KEY-
-p, --project-idstringThe id of the project for reportingCURRENTS_PROJECT_ID-
--machine-idstringUnique identifier of the machine running the tests. If not provided, it will be generated automatically. See: https://currents.dev/readme/readme?q=machineIdCURRENTS_MACHINE_ID[random-string]
--report-dirstringThe directory containing the test results created with one of the supported reportersCURRENTS_REPORT_DIR.currents/*
--ci-build-idstringThe id of the build to record the test run. Read more: https://currents.dev/readme/guides/ci-build-idCURRENTS_CI_BUILD_IDauto:[random-string]
--debugbooleanEnable debug logsDEBUG="currents,currents:*"false
-t, --tagstringComma-separated tag(s) for recorded runs in CurrentsCURRENTS_TAG-
--disable-title-tagsbooleanDisable extracting tags from test title, e.g. Test name @smoke would not be tagged with smokeCURRENTS_DISABLE_TITLE_TAGSfalse
--remove-title-tagsbooleanRemove tags from test names in Currents, e.g. Test name @smoke becomes Test name in the dashboardCURRENTS_REMOVE_TITLE_TAGSfalse

The configuration is also available by running the CLI command with the --help argument.

Troubleshooting

Run the CLI command with the --debug argument or prefix it with DEBUG="currents,currents:*" to obtain detailed information about the command execution process.

1.1.1

7 months ago

1.1.0

7 months ago

1.1.2

7 months ago

1.1.0-beta.14

8 months ago

1.2.0-beta.0

7 months ago

1.1.0-beta.15

8 months ago

1.1.0-beta.13

8 months ago

1.1.0-beta.18

8 months ago

1.1.0-beta.19

7 months ago

1.1.0-beta.16

8 months ago

1.1.0-beta.17

8 months ago

1.1.1-beta.2

7 months ago

1.1.1-beta.3

7 months ago

1.1.1-beta.0

7 months ago

1.1.1-beta.1

7 months ago

1.1.1-beta.4

7 months ago

1.1.1-beta.5

7 months ago

1.1.2-beta.0

7 months ago

1.1.0-beta.10

8 months ago

1.1.0-beta.11

8 months ago

1.1.0-beta.12

8 months ago

1.1.0-beta.9

8 months ago

1.1.0-beta.8

8 months ago

1.1.0-beta.7

8 months ago

1.1.0-beta.6

8 months ago

1.1.0-beta.5

8 months ago

1.1.0-beta.2

8 months ago

1.1.0-beta.1

8 months ago

1.1.0-beta.0

8 months ago

1.1.0-beta.4

8 months ago

1.1.0-beta.3

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

9 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

1.0.0-beta.4

10 months ago

1.0.0-beta.3

10 months ago

1.0.0-beta.2

10 months ago

1.0.0-beta.1

10 months ago

1.0.0-beta.0

10 months ago