We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using @RunWith(GradleSamplesRunner::class) or @RunWith(SamplesRunner::class)
@RunWith(GradleSamplesRunner::class)
@RunWith(SamplesRunner::class)
@Before and @After functions to be invoked properly
@Before
@After
@Before and @After functions silently ignored
I wanted to skip some samples under certain conditions in a @Before function using JUnit Assume. I didn't find a satisfying way so far.
Assume
@BeforeClass and @AfterClass are already handled by the parent ParentRunner.
@BeforeClass
@AfterClass
ParentRunner
The text was updated successfully, but these errors were encountered:
FWIW @Before and @After are handled in JUnit's BlockJUnit4ClassRunner.
BlockJUnit4ClassRunner
Sorry, something went wrong.
@Rule are also affected by this.
@Rule
@big-guy How so?
@marcphilipp since we don't use BlockJUnit4ClassRunner, @Rule's are also ignored.
Right, @ClassRule should work, though.
@ClassRule
No branches or pull requests
Using
@RunWith(GradleSamplesRunner::class)
or@RunWith(SamplesRunner::class)
Expected Behavior
@Before
and@After
functions to be invoked properlyCurrent Behavior
@Before
and@After
functions silently ignoredContext
I wanted to skip some samples under certain conditions in a
@Before
function using JUnitAssume
. I didn't find a satisfying way so far.@BeforeClass
and@AfterClass
are already handled by the parentParentRunner
.The text was updated successfully, but these errors were encountered: