-
Notifications
You must be signed in to change notification settings - Fork 39
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
[v5] Cypress Test Launches do not complete successfully. #64
Comments
Unfortunately I am seeing the same thing. Report Portal is the only reporter that I am using, and I am not using any plugins or libraries that should interfere. |
I see the same issue with
|
I also see the same issue. with autoMerge : true, the launches never complete eventhough the run has completed. if I turn off autoMerge, no issues |
Can we have an update on this issue, please? |
Hi, Can we have an update on this issue. I am currently doing a POC and auto-merge functionally with email notification is an essential feature for us. Thanks |
We have come across this issue also. It looks like the plugin counts all the files that matches your testFiles regex to find a total number of launches and then compares that the the amount of launches it has completed. This means that your launches not completing could be due to you:
The 2nd point is really what needs to be looked at. Just because a user has 6 tests files doesn't mean the run will cover all 6 of the files, we need a smarter way of determining how many suites are being run for a specific test set. I believe issues #62 and possibly #63 are also related to this issue. |
We had the same problem. And after digging into it, I found that the problem was with the following: |
Hey @zsbutosi can you please share us script which solved your case. |
@jitindoriya07 Here is my solution:
|
Found a workaround with
and for people needing to wait for Cypress to finish sending the result before exiting (like in a Docker container) here is a bash script:
|
Thank you for that setting with timeout. But I am still seeing the issue with test not being marked complete. We run our test in CircleCI. Test results do get pushed to RP and are auto merged. But the status is in-progrees in RP even though the test have completed running. CircleCI timeout! and the pipeline fails. |
I had this problem with the 120 Demo Tests (created by Cypress if no tests exist). I also had to increase the timeout (30s where far too low) in the ReporterOptions as described from @piopi : restClientConfig: {
// timoutconfig: https://github.com/reportportal/client-javascript#timeout-30000ms-on-axios-requests
timeout: 300000, // (5m) default 30000 (30s)
}, Report-Portal should fix that, or at least update the documentation: Line 38 in cc0a5d8
Should be: module.exports = (on, config) => registerReportPortalPlugin(on, config); as seen in the example project:https://github.com/reportportal/examples-js/blob/abc81c411c74556af5dce47c59ff4c166c65707c/example-cypress/cypress/plugins/index.js?plain=1#L19 Additional Info: I set the reportOptions dynamically in plugins/index.js because only on Jenkins the results should be reported to the reportportal. I also use the cypress-multi-reporters plugin "reporter": "cypress-multi-reporters",
"reporterOptions": {
"reporterEnabled": "cypress-mochawesome-reporter, mocha-junit-reporter, @reportportal/agent-js-cypress",
"mochaJunitReporterReporterOptions": {
"mochaFile": "target/surefire-reports/e2e-results-demo-[hash].xml"
},
"cypressMochawesomeReporterReporterOptions": {
"reportDir": "target/site/e2e-tests-demo",
"charts": true,
"embeddedScreenshots": false,
"inlineAssets": false,
"reportPageTitle": "Cypress-Tests"
},
"reportportalAgentJsCypressReporterOptions": {
...
}
}, |
The original issue of autoMerge=true still exists for me after trying all the above steps. @brabenetz do you have autoMerge set to true in your reporter options |
yes with autoMerge=true. |
@piopi I tried this but it seems that Cypress never finishes. Did you add anything else to ensure that the process ends? I believe this issue is caused by the point that schomper addressed:
|
Wow. This answer from @schomper is right! I had to pass individual file names instead of mentioning *.spec.js etc. Also if i pass all spec files from command line also, it does not work. I need to mention all spec files in the cypress json file. Then only it works without any issues. |
i was facing the same error, what helped was maintain in the test directory only the specs which will be executed and in the command line: npx cypress run --spec "./cypress/e2e/*.cy.js" seems like the autoMerge count how many specs file is in the directory and keep waiting for all them finish. |
Describe the bug
None of my launches finish. They get stuck in "in progress" until they time out after a day. We are using cypress along with the report portal
agent-js-cypress
plugin.To Reproduce
We have just setup a fresh report portal installation in Kubernetes. I have tried running single cypress tests, full suites, and through circle CI and have not had a single launch finish properly. I've used custom launch configurations and "out of the box" configurations.
Expected behavior
Launches should successfully finish.
Screenshots
The text was updated successfully, but these errors were encountered: