Find @Test methods with no recognized assertion calls
ProprietaryA test with no assert* / should* / assertThat calls relies on its setup to throw on failure — fine for some smoke tests, suspicious for most. Each match is a candidate for adding an explicit assertion that documents what the test is actually verifying.
org. openrewrite. kotlin. testing. FindTestNoAssertions$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. testing. FindTestNoAssertions$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.