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

Allow Given, When and Then in feature description

Open jirikuncar opened this issue 5 years ago • 3 comments
trafficstars

Raise only warning for following feature:

        Feature: Description

            In order to achieve something
            I want something
            Because it will be cool
            Given it is valid description
            When it starts working
            Then I will be happy


            Some description goes here.

            Scenario: Description
                Given I have a bar

jirikuncar avatar Jul 07 '20 16:07 jirikuncar

Codecov Report

Merging #377 into master will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #377      +/-   ##
==========================================
+ Coverage   95.51%   95.52%   +0.01%     
==========================================
  Files          48       48              
  Lines        1671     1677       +6     
  Branches      167      168       +1     
==========================================
+ Hits         1596     1602       +6     
  Misses         43       43              
  Partials       32       32              
Impacted Files Coverage Δ
pytest_bdd/__init__.py 100.00% <100.00%> (ø)
pytest_bdd/exceptions.py 100.00% <100.00%> (ø)
pytest_bdd/feature.py 99.23% <100.00%> (+0.01%) :arrow_up:
tests/feature/test_description.py 100.00% <100.00%> (ø)

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 8008c0f...1e6bba8. Read the comment docs.

codecov[bot] avatar Jul 08 '20 07:07 codecov[bot]

This can be resolved by using official parser (see #378).

jirikuncar avatar Jul 08 '20 09:07 jirikuncar

@olegpidsadnyi can you please have a look at this patch? It would help until the official parser is used. Thanks!

jirikuncar avatar Jul 24 '20 08:07 jirikuncar