Feature: Addition tests
@one
Scenario: Add two numbers to pass
Given two numbers to add
When 2 and 3 are added together
Then the sum should be 5
@two
Scenario: Add two numbers to fail
Given two numbers to add
When 2 and 3 are added together
Then the sum should be 6
Running >> behave --tags="@one" (or behave --tags=one) Gives me
@one
Scenario: Add two numbers to pass # features/Add.feature:4
Given two numbers to add # features/steps/Maths.py:4 0.000s
When 2 and 3 are added together # features/steps/Maths.py:8 0.000s
Then the sum should be 5 # features/steps/Maths.py:12 0.000s
@two
Scenario: Add two numbers to fail # features/Add.feature:10
Given two numbers to add # None
When 2 and 3 are added together # None
Then the sum should be 6 # None
As expected.
An yet Running >> behave --tags="@one or @two" Gives me
@one
Scenario: Add two numbers to pass # features/Add.feature:4
Given two numbers to add # None
When 2 and 3 are added together # None
Then the sum should be 5 # None
@two
Scenario: Add two numbers to fail # features/Add.feature:10
Given two numbers to add # None
When 2 and 3 are added together # None
Then the sum should be 6 # None
This should execute both scenarios and as per every tutorial this seems to be the way to run multiple scenarios. Am I missing something obvious here (and i'm definitely running "or" and not behave --tags="@one and @two")?