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
Invoke (Before|After)Class and TestRules around Cucumber execution
Junit invokes several framework methods around the test execution.
The cucumber runner should finish its whole execution inside these.
To be precises these two should be equivalent:
```
@BeforeClass
public static void before {
// Do stuff
}
@test
public void test(){
cucumber.api.cli.Main.main(some arguments....)
}
@afterclass
public static void after {
// Do stuff
}
```
```
@RunWith(Cucumber.class)
public class Test {
@BeforeClass
public static void before {
// Do stuff
}
@afterclass
public static void after {
// Do stuff
}
}
```
By firing the TestRunFinished event and printing the summary directly
after invoking the children rather then after the completion of the
whole test run these are made equivalent again.
0 commit comments