-
Hi, first of all, thanks for the great plugin. I maintain a plugin for uploading test run results to a test management tool and have recently been asked why tests marked as skipped ( A MWE revealed that skipped tests do not show up at all in the produced report: # cucumber.feature
Feature: Testing skips
@skip
Scenario: Scenario 1
Given a step
Scenario: Scenario 2
Given a step // cucumber-report.json
[
{
"description": "",
"elements": [
{
"description": "",
"id": "testing-skips;scenario-2",
"keyword": "Scenario",
"line": 4,
"name": "Scenario 2",
"steps": [
{
"arguments": [],
"keyword": "Given ",
"line": 5,
"name": "a step",
"match": {
"location": "not available:0"
},
"result": {
"status": "passed",
"duration": 26000000
}
}
],
"tags": [],
"type": "scenario"
}
],
"id": "testing-skips",
"line": 1,
"keyword": "Feature",
"name": "Testing skips",
"tags": [],
"uri": "cucumber.feature"
}
] I then searched this repository for any issues discussing this topic. If I understand correctly, the timeline was as follows:
There's talks about reverting #329 in the mitigation attempts, but I haven't found any more information on that. I assume the changes have been reverted at some point? Question: What's the final decision on how and if skipped tests should be included in the JSON report? I'm not asking for a feature, just for clarification so I can handle my own issue accordingly. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Skipped tests should ideally be included in the JSON report and marked as such. However, this is technically unfeasible without also introducing the mentioned undesired side effects. Lack of status of skipped tests also affects HTML reports, which is reported here. This would ideally be solved with more fine-grained plugin events, which has been previously dicussed, but never made it upstream. There is a proposal, but as explained in #1041 (comment), I don't think anything will ever happen with this, simply because Cypress hasn't made any meaningful, positive changes towards plugin developers in a long time. |
Beta Was this translation helpful? Give feedback.
Skipped tests should ideally be included in the JSON report and marked as such. However, this is technically unfeasible without also introducing the mentioned undesired side effects.
Lack of status of skipped tests also affects HTML reports, which is reported here.
This would ideally be solved with more fine-grained plugin events, which has been previously dicussed, but never made it upstream. There is a proposal, but as explained in #1041 (comment), I don't think anything will ever happen with this, simply because Cypress hasn't made any meaningful, positive changes towards plugin developers in…