Colton Idle
05/14/2021, 2:41 AM@Test
fun `one plus one`() {
val result = 1 + 1
assertThat(result).isEqualTo(2)
}
but when I add
@BeforeClass
fun setup() {
}
Then I get an error rerunning the test. "No tests found for given includes:" Ideas? I've looked on stackoverflow and it seems that having the tests run with intellij vs gradle could be the culprit but my test does actually run successfully without the setup step added and so I'm hard pressed as to why adding that simple block would be making things act strange.
Edit: Figured it out. Needed @BeforeClass @JvmStatic and put that method in a companion object.