Find test fixture / setup smells

Proprietary

Search-only bundle for test-method shape issues: empty @Test bodies, @Test methods without any recognized assertion call, @Test methods with many assertions (consider parameterized), and @BeforeEach/@Before methods reassigning instance state (lateinit var hint).

org.openrewrite.kotlin.testing.FindTestFixtureSmells$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.testing.FindTestFixtureSmells$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.

Recipe list

It runs these recipes, in this order.

  1. Find @Test methods with empty bodies
  2. Find @Test methods with no recognized assertion calls
  3. Find @Test methods with many assertions
  4. Find @BeforeEach methods that reassign val properties