Skip to content

Commit 545c6ca

Browse files
committed
Explicitly state used markers
1 parent 76a75ea commit 545c6ca

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

tests/feature/test_cucumber_json.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ def __cmp__(self, other):
3131

3232
def test_step_trace(testdir):
3333
"""Test step trace."""
34+
testdir.makefile(".ini", pytest=textwrap.dedent("""
35+
[pytest]
36+
markers =
37+
scenario-passing-tag
38+
scenario-failing-tag
39+
scenario-outline-passing-tag
40+
feature-tag
41+
""")
42+
)
3443
testdir.makefile('.feature', test=textwrap.dedent("""
3544
@feature-tag
3645
Feature: One passing scenario, one failing scenario

tests/feature/test_tags.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""Test tags."""
2+
import textwrap
3+
24
import pytest
35

46
from pytest_bdd import scenario, feature
@@ -20,6 +22,15 @@ def test():
2022

2123
def test_tags_selector(testdir):
2224
"""Test tests selection by tags."""
25+
testdir.makefile(".ini", pytest=textwrap.dedent("""
26+
[pytest]
27+
markers =
28+
feature_tag_1
29+
feature_tag_2
30+
scenario_tag_01
31+
scenario_tag_02
32+
""")
33+
)
2334
testdir.makefile('.feature', test="""
2435
@feature_tag_1 @feature_tag_2
2536
Feature: Tags

0 commit comments

Comments
 (0)