Skip to content

BelAn97/mocha-rp-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published