Tests in org.eclipse.ui.tests use org.eclipse.ui.tests.harness.util.TestRunLogUtil.LOG_TESTRUN to log/print when a test started and ended. This is a JUnit 4 rule which is present in some but not all tests. E.g. for #4009, QuickAccessDialogTest doesn't have this rule and is a JUnit 5 test.
To add such log information for QuickAccessDialogTest, following the same pattern, we would have to define a JUnit 5 extension and add it to QuickAccessDialogTest.
We can instead do better and use org.junit.platform.launcher.TestExecutionListener to print start and end for all tests, not just JUnit 4 ones using LOG_TESTRUN. We would need to remove LOG_TESTRUN from the tests, to avoid double printing.
For an example of how to use TestExecutionListener, see e.g.: eclipse-jdt/eclipse.jdt.ui@accc76e
Tests in
org.eclipse.ui.testsuseorg.eclipse.ui.tests.harness.util.TestRunLogUtil.LOG_TESTRUNto log/print when a test started and ended. This is a JUnit 4 rule which is present in some but not all tests. E.g. for #4009,QuickAccessDialogTestdoesn't have this rule and is a JUnit 5 test.To add such log information for
QuickAccessDialogTest, following the same pattern, we would have to define a JUnit 5 extension and add it toQuickAccessDialogTest.We can instead do better and use
org.junit.platform.launcher.TestExecutionListenerto print start and end for all tests, not just JUnit 4 ones usingLOG_TESTRUN. We would need to removeLOG_TESTRUNfrom the tests, to avoid double printing.For an example of how to use
TestExecutionListener, see e.g.: eclipse-jdt/eclipse.jdt.ui@accc76e