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
To execute cucumber tests with AbstractTestNGCucumberTests a group named "cucumber" must be set.
When setting a group, TestNG only executes methods annotated with that group or having thhe alwaysRun-attribute set to true.
Within AbstractTestNGCucumberTests there are two configuration methods, namely setUpClass and tearDownClass. Only setUpClass is annotated with alwaysRun=true, but tearDownClass is not.
This means that tearDownClass will never be executed when cucumber tests are executed, because the group "cucumber" is set.
The behaviour of the two configuration methods is inconsistent and should be unified.
The text was updated successfully, but these errors were encountered:
sventorben
added a commit
to sventorben/cucumber-jvm
that referenced
this issue
Jan 22, 2016
To execute cucumber tests with AbstractTestNGCucumberTests a group named "cucumber" must be set.
When setting a group, TestNG only executes methods annotated with that group or having thhe alwaysRun-attribute set to true.
Within AbstractTestNGCucumberTests there are two configuration methods, namely setUpClass and tearDownClass. Only setUpClass is annotated with alwaysRun=true, but tearDownClass is not.
This means that tearDownClass will never be executed when cucumber tests are executed, because the group "cucumber" is set.
The behaviour of the two configuration methods is inconsistent and should be unified.
The text was updated successfully, but these errors were encountered: