I'm using Android Studio, but I'm working in a pla...
# testing
c
I'm using Android Studio, but I'm working in a plain old java/kotlin lib/module I have this test that runs correctly
Copy code
@Test
    fun `one plus one`() {
        val result = 1 + 1
        assertThat(result).isEqualTo(2)
    }
but when I add
Copy code
@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.