Include an assertion in tests

MSAL

For tests not having any assertions, wrap the statements with JUnit Jupiter's Assertions#assertDoesNotThrow(..). Tests that make an assumption are left unchanged, as wrapping them would report a skipped test as a failure.

org.openrewrite.java.testing.cleanup.TestsShouldIncludeAssertions

Optional

A comma delimited list of packages and/or classes that will be identified as assertions. I.E. a common assertion utility org.foo.TestUtil.

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

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