pytest-bdd icon indicating copy to clipboard operation
pytest-bdd copied to clipboard

Preparing the scenario for multiple example tables

Open olegpidsadnyi opened this issue 3 years ago • 8 comments

Cucumber has added multiple example tables to the scenarios. These examples can also get tags. We need to support pytest marks for those examples. The parser is going to add multiple example tables to the TemplatedScenario. The tags can become part of the Examples object. Since each test item is produced by the parametrization represented by a single table row we have to pass the marks parameter to each of them.

olegpidsadnyi avatar Jan 12 '22 14:01 olegpidsadnyi

Codecov Report

Merging #489 (d52dea9) into master (f4ed62d) will decrease coverage by 0.09%. The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #489      +/-   ##
==========================================
- Coverage   95.91%   95.82%   -0.10%     
==========================================
  Files          49       49              
  Lines        1640     1651      +11     
  Branches      179      181       +2     
==========================================
+ Hits         1573     1582       +9     
- Misses         41       42       +1     
- Partials       26       27       +1     
Impacted Files Coverage Δ
pytest_bdd/scenario.py 90.90% <84.61%> (-0.76%) :arrow_down:
pytest_bdd/parser.py 99.54% <100.00%> (+<0.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f4ed62d...d52dea9. Read the comment docs.

codecov[bot] avatar Jan 12 '22 14:01 codecov[bot]

@elchupanebrej have a look. I started sketching out some preparations for the multiple scenario examples

olegpidsadnyi avatar Jan 12 '22 15:01 olegpidsadnyi

Hi, what is the status of this ticket?

mawaliya avatar Jul 14 '23 15:07 mawaliya

@olegpidsadnyi , https://github.com/pytest-dev/pytest-bdd/issues/378#issuecomment-2040791260

blaisep avatar Apr 05 '24 23:04 blaisep