I noticed that the PHPUnit TestCase method expectNotToPerformAssertions() wasn't being correctly applied by the TestCaseWrapper in Codeception. Unit tests with expectNotToPerformAssertions were being identified as useless tests, despite having informed the test runner that it does not perform assertions.
What I propose fixes the issue however it may not be the preferred way to do it. Happy to make alterations if required.
Side note, the test RunUselessTestsCest:checkOutput is failing because the UselessCest and UselessCept output isn't showing correctly in the test. Doesn't appear to be related but I'll make sure and fix in a subsequent commit if it it my fault.