-
Notifications
You must be signed in to change notification settings - Fork 43
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
qase-cypress v2: separate test runs are created for each file with tests #558
Comments
Workaround 2Since To update to this new version, run npm install --save-dev cypress-qase-reporter@beta There is still a problem that each reporter instance will make an API request to complete the test run. However, instances that are still running will still be able to report their result. To make sure that reporting to a completed test run is enabled, go to Project Settings, Test Run tab, and enable the setting Allow to add results for cases in closed runs. Implementation detailsQuoting from qase-javascript-commons@v2.0.0-beta.9: Now reporter handles Qase test runs in the following way:
Nothing has changed in cases when there is a single instance of a reporter or |
Hi, I'm getting the error Do I need to modify my config file?
|
Hi @LucasBenic, If you are using V2-beta of qase-cypress, please find the updated configuration format here 🔗 |
Hey, @LucasBenic! The configuration format has changed in v2, check it out: https://github.com/qase-tms/qase-javascript/tree/main/qase-cypress#configuration You should have something like this: reporter: [
['list'],
['playwright-qase-reporter',
{
mode: 'testops',
fallback: 'report',
testops: {
project: 'TESTE',
run: {
complete: true,
title: 'Playwright tests at ' + new Date().toISOString(),
},
uploadAttachments: true,
defect: false,
},
}],
], |
Guys, thank you so much for your support This beta version requires an ID in the test title, I recently removed all the IDs from my tests to make it easier to replicate to the rest of the project. |
My main point about that is that I have an integration with Slack, so whenever the test is completed, all the team members receive a notification about the tests, currently I have hundreds of test cases divided by specs. The Slack notification is being triggered as soon as the first spec is finished, missing all the rest of the tests. For now, since I was not able to solve this issue with the Beta version, I think the best solution is to create and complete the test run by HTTP request. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The problem is that Cypress creates a separate reporter for each test file. As a result, after running all the tests in each single file, the run test is marked as completed. Instead, it should be completed after running tests in all files.
There is a workaround:
Create a test run using an HTTP request:
Set the
QASE_TESTOPS_RUN_ID
environment variable to a test run IDSet the
QASE_TESTOPS_RUN_COMPLETE
environment variable to FalseComplete the run test using an HTTP request:
The text was updated successfully, but these errors were encountered: