If you are using Kotest framework alongside Kotest assertions, you can ask Kotest to fail the build, or output a warning to stderr, if a test is executed that does not execute an assertion.
To do this, set
AssertionMode.Warn inside a spec. For example.
Running this test will output something like:
If we want to set this globally, we can do so in project config or via the system property
Assertion mode only works for Kotest assertions and not other assertion libraries.