Kotlin test methods should have return type Unit
MSALKotlin 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. KotlinTestMethodsShouldReturnUnitmod run . --recipe= org. openrewrite. java. testing. cleanup. KotlinTestMethodsShouldReturnUnitInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.