forked from pytest-dev/pytest-bdd
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simplest scenario example to Readme
- Loading branch information
1 parent
e74de6f
commit 17c6313
Showing
4 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: Simplest example | ||
Scenario: | ||
# https://cucumber.io/docs/gherkin/reference/ | ||
Given File "Passing.feature" with content: | ||
"""gherkin | ||
Feature: Passing feature | ||
Scenario: Passing scenario | ||
* Passing step | ||
""" | ||
# https://docs.pytest.org/en/stable/reference/fixtures.html#conftest-py-sharing-fixtures-across-multiple-files | ||
And File "conftest.py" with content: | ||
"""python | ||
from pytest_bdd import step | ||
@step('Passing step') | ||
def _(): | ||
... | ||
""" | ||
# https://docs.pytest.org/en/stable/how-to/usage.html | ||
When run pytest | ||
Then pytest outcome must contain tests with statuses: | ||
|passed| | ||
| 1| |