-
Notifications
You must be signed in to change notification settings - Fork 7
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
Plugin not working with 4.0.0
#132
Comments
Please make sure to update the import to: import {
addXrayResultUpload,
configureXrayPlugin,
syncFeatureFile
} from "cypress-xray-plugin"; (see changelog) |
I have tried that also and I had the following error:
|
Have you updated async setupNodeEvents(on, config) {
await configureXrayPlugin(
config,
{
jira: {
projectKey: "PRJ", // placeholder value
url: "https://example.org" // placeholder value
}
}
);
// ...
} |
I changed the code as you proposed and I have now the following error when running:
|
I removed the register from the cypress-xray-plugin import and the run was successful. Errors on config file are still to be seen though. |
Yes, these options don't exist anymore (see changelog):
|
So is this still possible to upload scenarios on Jira and have not created a test ticket previously? |
No, this is not possible anymore. It was possible to configure such created issues (summary, ...) when using the normal upload, but it was not possible to configure them using the Cucumber upload. Xray (more or less) simply does what it wants in this case, unfortunately. Keeping things as is for the normal upload would have meant adding a whole new set of options for Cucumber specifically and would have overcomplicated the configuration (for me as well as for the users). The easier option was to simply not allow issue creation anymore. So you either link your tests/scenarios/backgrounds to existing issues, or they will be skipped during upload. Hopefully this is not too much of a bummer 😞 In the long term it's the better approach I think. The other version was capable of creating hundreds of issues out of nowhere (you've struggled with this too, I think). Now it's less dangerous. |
well for me its a relief not to have to delete the generated tickets after a test run. So this means if i don't have the merge background option then no background steps will be shown and no Background files are created either, right? |
No, if you don't merge the backgrounds, your feature files will not be uploaded anymore, which means that no background issues will be created anymore either. Regarding the results displayed in a test execution: I'm actually unsure. I think in the worst case you might see a warning like "executed steps don't match steps of test issue". |
Ok thanks again for your help. Just don't forget to document this on your plugin configuration documentation, for others to see. |
Yes, I will make sure to add a note somewhere. I will try it out myself later, just to see what actually happens. Closing here, the |
4.0.0
Thank you first of all for the work you ve done to fix the issues I found.
I installed the latest cypress-xray-plugin version 4.0.0 and after that I had an Error on my cypress config file.
Running cypress with the Jira PAT created the following error:
The text was updated successfully, but these errors were encountered: