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
Given two test classes implementing ScenarioTest or SimpleScenarioTest:
Class A has all @Test methods @Disabled.
Class B contains "normal" @Test methods.
When class B is run after class A in the same test run (say, using Maven), the given() call in class B returns null.
This only occurs if A has@Test methods which are all@Disabled.
E.g.
public class DisabledReproA extends ScenarioTest<ReproStage, ReproStage, ReproStage> {
@Test
@Disabled("for reasons")
void testA() {
given().something_is_set_up();
}
}
public class DisabledReproB extends ScenarioTest<ReproStage, ReproStage, ReproStage> {
@Test
void testB() {
// This will crash with a nullpointer exception:
given().something_is_set_up();
}
}
public class ReproStage extends Stage<ReproStage> {
public ReproStage something_is_set_up() {
return self();
}
}
The text was updated successfully, but these errors were encountered:
Using jgiven-junit5, 0.15.3
Given two test classes implementing ScenarioTest or SimpleScenarioTest:
@Test
methods@Disabled
.@Test
methods.When class B is run after class A in the same test run (say, using Maven), the
given()
call in class B returns null.This only occurs if A has
@Test
methods which are all@Disabled
.E.g.
The text was updated successfully, but these errors were encountered: