Logger (LogTester) - Support for JUnit5 tests

To support plugin development SonarQube supplies the class LogTester.
Unfortunately this depends on @org.junit.Rule which no longer exist in JUnit5.

Is there an alternative testing facility for interface Logger supporting JUnit5?

Currently I’m using mixed tests: JUnit5 if possible, JUnit4 in separate test classes if required.
JUnit5 didn’t work out even with junit-jupiter-migrationsupport module.

2 Likes