You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cucumber_cpp/acceptance_test/test.bats
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -126,10 +126,19 @@ teardown() {
126
126
@test "Dry run with known missing steps" {
127
127
run .build/Host/cucumber_cpp/acceptance_test/Debug/cucumber_cpp.acceptance_test run --feature cucumber_cpp/acceptance_test/features --tag "@result:UNDEFINED" --report console --dry
assert_output --partial "skipped Then a then step"
131
132
}
132
133
134
+
@test "Dry run with known ambiguous steps" {
135
+
run .build/Host/cucumber_cpp/acceptance_test/Debug/cucumber_cpp.acceptance_test run --feature cucumber_cpp/acceptance_test/features --tag "@result:AMBIGUOUS" --report console --dry
136
+
assert_failure
137
+
assert_output --partial "Ambiguous step: \"this is ambiguous\" Matches"
assert_output --partial "skipped When a when step"
140
+
}
141
+
133
142
@test "Test the and keyword" {
134
143
run .build/Host/cucumber_cpp/acceptance_test/Debug/cucumber_cpp.acceptance_test run --feature cucumber_cpp/acceptance_test/features --tag "@keyword-and" --report console
0 commit comments