allure-python: pytest-bdd 5.0.0: error on generating report with failed tests with scenario outlines
I’m submitting a …
- [V] bug report
- [V] feature request
What is the current behavior?
report doesn’t include failed tests with scenario outline (pytest-bdd 5.0.0)
it fails with
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String
out of START_OBJECT token
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
- pytest-bdd 5.0.0
- run scenario outlines with examples which fails
- generate report
What is the expected behavior?
failed tests appears in report
Please tell us about your environment:
- Test framework: pytest-bdd@5.0.0
- Allure adaptor: allure-pytest-bdd@2.9.45 (and other lower versions)
Other information
it worked OK with previous pytest-bdd versions
pytest-bdd 5.0.0 changes https://pytest-bdd.readthedocs.io/en/latest/#id1
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 23 (5 by maintainers)
Commits related to this issue
- Update utils.py Fix for https://github.com/allure-framework/allure-python/issues/636 Copied /Modified pytest_markers and mark_to_str function from allure-python utils — committed to DH-MP/allure-python by DH-MP 2 years ago
- (fix): #636 — committed to popescunsergiu/allure-python-temp by sergiu-popescu-ailylabs 2 years ago
- Fix parameters parsing from "Scenario Outline" for pytest-bdd >= 5.0.0 (fixes #636) (#716) Co-authored-by: Maxim <17935127+delatrie@users.noreply.github.com> — committed to beckerGil/allure-python by janxen a year ago
- Fix parameters parsing from "Scenario Outline" for pytest-bdd >= 5.0.0 (fixes #636) (#716) Co-authored-by: Maxim <17935127+delatrie@users.noreply.github.com> — committed to beckerGil/allure-python by janxen a year ago
- Fix parameters parsing from "Scenario Outline" for pytest-bdd >= 5.0.0 (fixes #636) (#716) Co-authored-by: Maxim <17935127+delatrie@users.noreply.github.com> — committed to IvanBuruyane/allure-python by janxen a year ago
- Fix parameters parsing from "Scenario Outline" for pytest-bdd >= 5.0.0 (fixes #636) (#716) Co-authored-by: Maxim <17935127+delatrie@users.noreply.github.com> — committed to IvanBuruyane/allure-python by janxen a year ago
I have workaround for this issue. Following code should be placed in
conftest.py
:I’ve come across the same issue, it fails to generate the report even for successful tests when using
Scenario Outline
.@robbrad Hi! Sorry for the delay. The fix just got released. Check v2.13.0!
I’m having exactly the same issue, but using
pytest-bdd==6.0.0
Same issue, when this change will be available please