eclipse-che / che

Kubernetes based Cloud Development Environments for Enterprise Teams
http://eclipse.org/che
Eclipse Public License 2.0
6.99k stars 1.19k forks source link

Generate E2E typescript test report for ReportPortal #22543

Closed dmytro-ndp closed 1 year ago

dmytro-ndp commented 1 year ago

Is your task related to a problem? Please describe

Make it possible to generate test report for ReportPortal https://reportportal-crw.apps.ocp-c1.prod.psi.redhat.com

Describe the solution you'd like

Use @reportportal/agent-js-mocha library.

Reporter option:

const mochaMain = new Mocha({
  reporter: '@reportportal/agent-js-mocha',
  reporterOptions: {
    endpoint: 'https://reportportal-crw.apps.ocp-c1.prod.psi.redhat.com/api/v1',
    token: 'RP_TOKEN',
    launch: 'RP_LAUNCH_NAME',
    project: 'RP_PROJECT_NAME',
    description: 'RP_LAUNCH_DESCRIPTION'
  },
  timeout: 250000
});

There are dedicated projects:

Describe alternatives you've considered

No response

Additional context

Downstream issue: https://issues.redhat.com/browse/CRW-1433

nallikaea commented 1 year ago

https://reportportal.io/docs/installation-steps/DeployWithDockerOnLinuxMac/