Skip to content

Choose a tag to compare

@dylanpulver dylanpulver released this 10 Nov 03:00
· 4 commits to main since this release
v1.3.0
9c6dc8f

New check: uncollected-kotlin-tests. It finds Kotlin test functions missing @Test under JUnit 4, JUnit 5 and kotlin.test. It handles backtick names, = runTest { } bodies and @Nested inner classes. It skips Kotest, Spek and TestNG files.

On okhttp, ktor, Exposed, moshi and wire (3,624 Kotlin files) it reports one function: okhttp's testCachedRequest. That function lost its @Test in 2020, when a new test was inserted between the annotation and the function.

uses: dylanpulver/dead-tests@v1 picks this up automatically.