Skip to content

Commit e07ba03

Browse files
committed
Cucumber tests now fails if steps or scenarios are not implemented as well
1 parent 407292f commit e07ba03

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/tck/environment.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ def before_all(context):
2727

2828
def before_feature(context, feature):
2929
# Workaround. Behave has a different way of tagging than cucumber
30-
if "reset_database" in feature.tags:
31-
for scenario in feature.scenarios:
32-
scenario.tags.append("reset_database")
33-
30+
for scenario in feature.scenarios:
31+
scenario.tags += feature.tags
3432

3533
def before_scenario(context, scenario):
3634
if "reset_database" in scenario.tags:
3735
tck_util.send_string("MATCH (n) DETACH DELETE n")
36+
37+
38+
def after_scenario(context, scenario):
39+
if scenario.status != "passed":
40+
raise Exception("%s did not pass" %scenario)
41+

0 commit comments

Comments
 (0)