anuragkabra / mocha-rp-agent

Agent for integration Mocha with ReportPortal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mocha-rp-agent

Agent for integration Mocha with ReportPortal. ReportPortal
ReportPortal on GitHub

How to use

  1. Install the agent in your project:
npm i mocha-reportportal-agent --save-dev
  1. Add reporter to mocha options:
    javascript
    mochaOpts: {
        colors: true,
        reporter: 'mocha-reportportal-agent',
        reporterOptions: {
            // client settings
            token: "00000000-0000-0000-0000-000000000000",
            endpoint: "http://your-instance.com:8080/api/v1",
            launch: "LAUNCH_NAME",
            project: "PROJECT_NAME",
            // agent settings
            attachScreenshots: true,
            showPassedHooks: false
        },
        timeout: 600000
    },

Settings

Agent settings consist of two parts:

  • Client settings can be viewed here
  • Agent settings are described below
Parameter Description
attachScreenshots It is 'true' or 'false', if set 'true' then attempts will be made to attach screenshots to the logs. Default: 'true'.
showPassedHooks It is 'true' or 'false', if set 'true' then attempts will be made to add passed hooks to the logs. Default: 'false'.

Copyright Notice

Licensed under the GPLv3 license (see the LICENSE.txt file).

About

Agent for integration Mocha with ReportPortal.

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%