codeceptjs-rphelper

3.5.3 • Public • Published

Buy Me A Coffee Donate with PayPal

Codacy Badge GitHub tag License

codeceptjs-rphelper

Streamline your CodeceptJS test results with seamless integration into ReportPortal.

codeceptjs-rphelper is a CodeceptJS helper designed to publish test results on ReportPortal effortlessly after execution.

Installation

npm i codeceptjs-rphelper --save

Configuration

To utilize this plugin, add the following configuration to your codecept.conf.(js|ts) file:

{
  ...
   plugins: {
    reportportal: {
      require: 'codeceptjs-rphelper',
      token: 'YOUR_TOKEN',
      endpoint: 'http://localhost:8080/api/v1',
      launchName: 'This is awesome',
      launchDescription: 'This is a description of your launch',
      launchAttributes: [{ key: 'yourKey', value: 'yourValue' }],
      projectName: 'YOUR_PROJECT',
      rerun: false,
      debug: false,
      enabled: true
    }
  ...
}

Specify the following information:

  • token: Found on the user profile page, use it for authentication instead of a password.
  • endpoint: Your ReportPortal host + /api/v1, e.g., http://localhost:8080/api/v1.
  • launchName: The desired launch name (default is the suite title).
  • launchDescription: Description of your launch (default is empty).
  • launchAttributes: Attributes for your launch (default is empty).
  • projectName: The project created in the ReportPortal UI.
  • debug: Enable debug mode for ReportPortal.
  • rerun: Enable rerun.
  • rerunOf: UUID of the launch to rerun. If not specified, the latest launch with the same name will be updated.
  • issue: Test item issue object. Visit client-javascript for more info.

For additional logs, set debug: true in the configuration.

Video

View Example Video

Package Sidebar

Install

npm i codeceptjs-rphelper

Weekly Downloads

461

Version

3.5.3

License

MIT

Unpacked Size

25.4 kB

Total Files

12

Last publish

Collaborators

  • thanh.nguyen