Kotlin test methods should have return type Unit

MSAL

Kotlin test methods annotated with @Test, @ParameterizedTest, @RepeatedTest, @TestTemplate should have Unit return type. Other return types can cause test discovery issues, and warnings as of JUnit 5.13+. This recipe changes the return type to Unit and drops the returned values. Test methods that override a method or are called elsewhere in the same file are left unchanged.

org.openrewrite.java.testing.cleanup.KotlinTestMethodsShouldReturnUnit
mod run . --recipe=org.openrewrite.java.testing.cleanup.KotlinTestMethodsShouldReturnUnit

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.