Skip to content

Commit 3f91a64

Browse files
committed
Make rule test for Gherkin terminal reporter check verbosity levels 1 and 2
1 parent d67a7b8 commit 3f91a64

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/feature/test_gherkin_terminal_reporter.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,15 @@ def _():
336336
)
337337
)
338338

339+
result = pytester.runpytest("--gherkin-terminal-reporter", "-v")
340+
result.assert_outcomes(passed=3, failed=0)
341+
result.stdout.fnmatch_lines("*Feature: Gherkin terminal output with rules and examples*")
342+
result.stdout.fnmatch_lines("*Rule: Rule 1*")
343+
result.stdout.fnmatch_lines("*Example: Example 1*")
344+
result.stdout.fnmatch_lines("*Scenario: Scenario 2*")
345+
result.stdout.fnmatch_lines("*Rule: Rule 2*")
346+
result.stdout.fnmatch_lines("*Example: Example 3*")
347+
339348
result = pytester.runpytest("--gherkin-terminal-reporter", "-vv")
340349
result.assert_outcomes(passed=3, failed=0)
341350
result.stdout.fnmatch_lines("*Feature: Gherkin terminal output with rules and examples*")

0 commit comments

Comments
 (0)