Find sources that are likely tests

Apache 2.0

Sources that contain indicators of being, or being exclusively for the use in tests. This recipe is not exhaustive, but is intended to be a good starting point for finding test sources. Looks at the source set name, and types in use; for example looks for uses of JUnit & TestNG annotations/assertions.

org.openrewrite.java.search.IsLikelyTest
mod run . --recipe=org.openrewrite.java.search.IsLikelyTest

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