testcafe-reporter-reportportal

TestCafe reporter plugin for reportportal.io

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
testcafe-reporter-reportportal
521.0.293 years ago5 years agoMinified + gzip package size for testcafe-reporter-reportportal in KB

Readme

testcafe-reporter-reportportal
Build Status
This is the reportportal reporter plugin for TestCafe.

<img src="https://raw.github.com/redfox256/testcafe-reporter-reportportal/master/media/preview.png" alt="preview" />

Install

npm install testcafe-reporter-reportportal

Usage

When you run tests from the command line, specify the reporter name by using the --reporter option:
testcafe chrome 'path/to/test/file.js' --reporter reportportal

  • cd into your project.
  • Edit or create the .env file by adding the following required variables:

REPORT_PORTAL_BASE_URL=http://example.com
REPORT_PORTAL_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
REPORT_PORTAL_PROJECT_NAME=My_Demo
# Launch name is optional, if not specified the name will default to the project name
REPORT_PORTAL_LAUNCH_NAME=The Launch Name
# Tags are optional, should be separated by coma
REPORT_PORTAL_TAGS=Tag1, Tag2
# Description is optional
REPORT_PORTAL_DESCRIPTION=Run description
# Launch ID is optional, and if specified the reporter will use the specified ID for its launch, and will not stop the launch at the end of the suite
REPORT_PORTAL_LAUNCH_ID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

When you use API, pass the reporter name to the reporter() method:
testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('reportportal') // <-
    .run();