This package has been deprecated

Author message:

The package is out of date and will no longer supported by reportportal.io. Please use https://www.npmjs.com/package/@reportportal/agent-js-jest with RP 5.0 full compatibility

@reportportal/reportportal-agent-jest

1.0.7 • Public • Published

reportportal-agent-jest

A Jest reporter that uploads the results to a ReportPortal server.

Installation

npm install --save-dev @reportportal/reportportal-agent-jest

Usage

In your jest config section of package.json, add the following entry:

{
    "jest": {
        ...
        "reporters": [
            "default",
            ["@reportportal/reportportal-agent-jest",
            {
                "endpoint": "https://your.reportportal.server/api/v1",
                "project": "YourReportPortalProjectName",
                "launchname": "YourLauncherName",
                "tags": ["tag1","tag2"]
            }]
        ],
        ...
    }
}

In case you use jest.config.js, you should add to it the following:

module.exports = {
    ...
    reporters: [
        "default",
        [
            "@reportportal/reportportal-agent-jest",
            {
                "endpoint": "https://your.reportportal.server/api/v1",
                "project": "YourReportPortalProjectName",
                "launchname": "YourLauncherName",
                "tags": ["tag1","tag2"]
            }
        ]
    ]
    ...

It's possible by using environment variables, it's important to mention that environment variables has precedence over package.json definition.

$ export RP_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
$ export RP_PROJECT=MY_AWESOME_PROJECT
$ export RP_LAUNCH_NAME=MY_COOL_LAUNCHER
$ export RP_TAGS=tag1,tag2,tag3

This for your convenience in case you has a continuous job that run your tests and may post the results pointing to a different Report Portal definition of project, launcher name or tags.

Copyright Notice

Licensed under the Apache License v2.0

This code is based on the jest-junit but adapted by team members of Ontoforce for the ReportPortal upload. Ontoforce contributed this effort as Open Source to the ReportPortal project team.

Package Sidebar

Install

npm i @reportportal/reportportal-agent-jest

Weekly Downloads

43

Version

1.0.7

License

Apache-2.0

Unpacked Size

22.3 kB

Total Files

7

Last publish

Collaborators

  • amsterget
  • davert
  • fizik2009
  • reportportal-admin