Open mar1ogz opened 3 weeks ago
Hi @mar1ogz,
thanks for the very detailed issue description! I will look into it, theoretically it should be possible to scan all included scenarios for @skip
or @only
tags. But I need to check how Xray handles such cases first.
Sorry for the somewhat late reply. I looked into it and the Cucumber plugin seemingly does not at all include skipped tests in the generated JSON report, which my plugin relies on and uploads to Xray. I have started a discussion in the other repository, which you can follow for now for further updates: https://github.com/badeball/cypress-cucumber-preprocessor/discussions/1203
But to me it looks like skipped tests aren't ever coming back to the generated report, which means that we'll need to find a different solution. Cypress's own run results do include skipped scenarios, which could be leveraged instead.
Hello!
Nice :) Thanks for getting involved in this topic @csvtuda!
Hey @mar1ogz,
I have just released version 7.1.0 (changelog). This version includes a dependency bump of the cypress-cucumber-preprocessor, which fixes the problem with skipped scenarios not showing up in reports.
However, since the preprocessor skips scenarios by marking all the steps they contain as "skipped"
, I had to add new options:
xray: {
status: {
step: {
failed: // ...
passed: // ...
pending: // ...
skipped: // ...
}
}
}
By default, Xray treats Cucumber step results named "skipped"
as TO DO
(as far as I've seen). So you'll need to explicitly set skipped steps to the status you want to see, e.g.:
xray: {
status: {
step: {
skipped: "MY SKIPPED STATUS"
}
}
}
You can check the documentation for another example.
I also looked at @only
. It looks to me like the preprocessor ignores this tag completely and executes all scenarios regardless. Unfortunately, I will not be able to investigate this further in the coming weeks. If my observations are correct, you will need to open an issue with @badeball/cypress-cucumber-preprocessor
, as my plugin is not responsible for executing tests/scenarios - only for uploading results.
Hey @csvtuda!
Now it is working fine with the @skip
(in lowercase) tag! It is set as TO DO because I don't have the SKIPPED status in Xray set up for my project, but I will definitely ask my admin for it :)
Thank you for your hard work and for solving this issue so quickly!
Hello :)
Description
I have tested adding tags such as @skip or @only to run only the scenarios I want. However, after the execution is complete, tests with the status pending or skipped are not included in the execution in Jira.
I would like to have the option to include those tests in the execution even if I skipped them manually.
I have tried to use optional settings for the status, but I am using the default settings
In my previous project I had an older version of this plugin and I was not using Cucumber and it was possible to upload the Skipped tests I had disabled using
xit(...)
Cypress version
13.10.0
Plugin version
7.0.1
Jira/Xray type
Cloud
Configuration
Acknowledgements