Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test execution doesn't stop when automerge is enable #132

Open
adelstrinidad opened this issue Sep 29, 2022 · 3 comments
Open

Test execution doesn't stop when automerge is enable #132

adelstrinidad opened this issue Sep 29, 2022 · 3 comments

Comments

@adelstrinidad
Copy link

I noticed after installing the latest version of this agent that the issue related to executions doesn't stop when the automerge attribute is enabled persists.

Dependencies
Cypress version: 10.3.0
Typescript: 4.7.4
@reportportal/agent-js-cypress: 5.1.0
Browser: chrome

Report portal settings in cypress.config.ts

e2e: {
  
   specPattern: "cypress/e2e/**/*.spec.{js,jsx,ts,tsx}",
   excludeSpecPattern: "cypress/e2e/All.spec.ts",
   "supportFile":"cypress/support/e2e.ts",
   pageLoadTimeout:200000,
   setupNodeEvents(on, config) {
     // implement node event listeners here
     return registerReportPortalPlugin(on, config);
   },
 },
 reporter: "@reportportal/agent-js-cypress",
 reporterOptions: {
   endpoint: "https://reportportal.-URL",
   token: process.env.RP_TOKEN,
   launch: "my launch",
   project: "my project",
   description: "Cypress e2e",
   uuid: "one UUID",
   autoMerge: true
 
 }

Steps to reproduce
1- Run cypress in headless mode: npx cypress run --browser chrome --spec "path to your spec"
2- Wait until the run is Cypress is done
3- Go to reportportal and inspect the latest launch
4- Inspect Duration time

Expected result
It should display the duration of the run

Actual result
The run never finishes
errorRP

NOTE:
No log is available since it is a private project from my client
Same thing for the repo

@notfounnd
Copy link

Did you check this issue? It has some tips about the plugin configuration that maybe can help you.

#93

@adelstrinidad
Copy link
Author

Hey @notfounnd! yes, I've tried this workaround, but it seems that doesn't work in the latest version of cypress and cypress agent. Waiting for a real fix and not a workaround

@reportportal reportportal deleted a comment from DzmitryHumianiuk Dec 1, 2022
@prettyls
Copy link

prettyls commented Nov 14, 2023

I have exact same issue when ran cypress test. all workaround mentioned in the board never work. my agent version 5.1.4, RP 5.7.4. Here is my options

 reporterOptions: {
   endpoint: "https://localhost:8080/api/v1",
   apiKey: myKey,
   launch: "my launch",
   project: "my project",
   description: "my test",
   debug: false,
   autoMerge: true,
   restClientConfig: {
     "timeout" : 30000
}
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants