Closed shihai1991 closed 1 year ago
for example, there has a test.feature:
Feature: test_feature Background: When test_when Then test_then When test_when Then test_then
when I use scenarios("test.feature") import the features, I got this error.
Step definition outside of a Scenario or a Background
the error will gone if I use a single When-Then in feature:
Feature: test_feature Background: When test_when Then test_then
releated discussion: https://github.com/pytest-dev/pytest-bdd/issues/408
for example, there has a test.feature:
when I use scenarios("test.feature") import the features, I got this error.
the error will gone if I use a single When-Then in feature: