improve: allow flaky tests run with specify parameters
Fix #3249
Motivation
This PR addresses the issue where tests annotated with @FlakyTest were not being executed by JUnit unless they were also annotated with @Test. To resolve this, we have updated our Maven Surefire plugin configuration to exclude tests tagged with flaky during regular CI runs, allowing these tests to be run separately. This adjustment ensures that all tests, including those marked as flaky, are executed as intended unless explicitly excluded. Moreover, we've planned the addition of a daily CI job and non-required CI to specifically run tests tagged as flaky, ensuring continuous monitoring and quicker identification of intermittent issues without affecting the main test pipeline. This setup also enhances the ability to run tests directly from the IDE, making it more convenient for developers to execute and debug individual tests as needed.
Looks like it's in the Junit Jupiter docs too. Please see 2.1.1. Meta-Annotations and Composed Annotations.