Skip to content

Instantly share code, notes, and snippets.

@Aidan128
Created December 9, 2021 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aidan128/59b44fcca2e43b0313db41f9674dd120 to your computer and use it in GitHub Desktop.
Save Aidan128/59b44fcca2e43b0313db41f9674dd120 to your computer and use it in GitHub Desktop.
Code coverage tests (extended)
@RunWith(AndroidJUnit4::class)
class Tests {
@Test
fun basicTests() {
assertEquals(4, JavaClass().function1())
assertEquals(4, KotlinClass().function1())
}
@Test
fun basicTests2() {
assertEquals(6, JavaClass().function2())
assertEquals(6, KotlinClass().function2())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment