pytest-bdd
pytest-bdd copied to clipboard
Cucumber JSON report is generated without skipped tests info
trafficstars
Environment: platform darwin -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0 plugins: splinter-3.3.2, bdd-6.0.1, clarity-1.0.1
Steps to reproduce:
- Create simple pytest-bdd setup with feature file and tests.
- In feature file and default @skip flag like this:
@skipScenario: Test1When blablaThen blablablaOr any other way to skip test execution - Run pytest with
addopts = -vv -rsfx --cucumber-json=cucumber_report.json --gherkin-terminal-reporter --color=yesin pytest.ini or same alternative in CLI - Gherkin terminal output will contain
test_bla.py::test_bla <- venv/lib/python3.9/site-packages/pytest_bdd/scenario.py SKIPPED (unconditional skip)
Actual result: 5. cucumber.json file doesn't contain any info about skipped test at all
Expected result:
5. cucumber.json file contains info about skipped test (at least ..."result": {"status": "skipped"... )