Added tags to scenarios

This commit is contained in:
Pandy Knight 2023-07-20 00:23:13 -04:00
parent 94b56fbc34
commit 29934bcd60
4 changed files with 26 additions and 6 deletions

9
pytest.ini Normal file
View File

@ -0,0 +1,9 @@
[pytest]
markers =
add
cucumber-basket
duckduckgo
remove
service
web
testpaths = tests

View File

@ -1,22 +1,31 @@
@cucumber-basket
Feature: Cucumber Basket
As a gardener,
I want to carry cucumbers in a basket,
So that I don't drop them all.
@add
Scenario Outline: Add cucumbers to a basket
Given the basket has "<initial>" cucumbers
When "<some>" cucumbers are added to the basket
Then the basket contains "<total>" cucumbers
Examples: Amounts
Examples:
| initial | some | total |
| 2 | 4 | 6 |
| 0 | 3 | 3 |
| 2 | 4 | 6 |
| 5 | 5 | 10 |
Scenario: Remove cucumbers from a basket
Given the basket has "8" cucumbers
When "3" cucumbers are removed from the basket
Then the basket contains "5" cucumbers
@remove
Scenario Outline: Remove cucumbers from the basket
Given the basket has "<initial>" cucumbers
When "<some>" cucumbers are removed from the basket
Then the basket contains "<total>" cucumbers
Examples:
| initial | some | total |
| 8 | 3 | 5 |
| 10 | 4 | 6 |
| 7 | 0 | 7 |

View File

@ -1,3 +1,4 @@
@service @duckduckgo
Feature: DuckDuckGo Instant Answer API
As an application developer,
I want to get instant answers for search terms via a REST API,

View File

@ -1,3 +1,4 @@
@web @duckduckgo
Feature: DuckDuckGo Web Browsing
As a web surfer,
I want to find information online,