I'm using "cucumber-html-reporter" for my Appium, Pytest-BDD automation. For some reason, I'm not getting skipped test cases in my html report.
Below is my report generation script
var reporter = require('cucumber-html-reporter');
var date = new Date().getTime()
var options = {
theme: 'bootstrap',
jsonFile: __dirname + '/reports/JsonReport.json',
output: __dirname + '/reports/htmlReport/report.html',
reportSuiteAsScenarios: true,
scenarioTimestamp: true,
launchReport: false,
metadata: {
"App Version": "app_version",
"Test Environment": "Local",
"Device": "DeviceName",
"Platform": "DevicePlatform",
"App-Instance-Id" : "appInstanceId"
}
};
reporter.generate(options);
I'm using @skip explicitly to skip the test cases. I want to see those cases in html report. I couldn't find any resource to solve this issue. Any help would be appreciated.
Below is my sample code
@fire @smoke @android @testCoupe
Feature: Fire Screen
Verifying Fire Screen Functionality
@skip
Scenario: Tapping on an news article under fire card
When Scroll to "SPOTLIGHT_FIRE_CARD" CARD
And The user has clicked on the "SPOTLIGHT_FIRE_CARD" button
Then The user can view "FIRE_STORY_ARTICLE" by clicking "FIRE_STORY_TITLE" in "FIRE_CENTER_SCREEN"
After automation run, I can't see any skip test cases, I can only see passed or failed test case.
My execution script
python3 -m pytest --disable-pytest-warnings -vv --gherkin-terminal-reporter --cucumberjson=$REPORT_PATH -k "fireTest" -s