Jiabao Sun created FLINK-33629: ---------------------------------- Summary: Introduce ArchTest rules to ban Junit 4 for modules already completed the migration Key: FLINK-33629 URL: https://issues.apache.org/jira/browse/FLINK-33629 Project: Flink Issue Type: Sub-task Components: Tests Affects Versions: 1.18.0 Reporter: Jiabao Sun
Currently, many modules have already completed the migration to JUnit 5, and we need to prevent the introduction of JUnit 4 tests in new PRs. However, completely removing the dependency on JUnit 4 is challenging. It requires defining JUnit 4 as optional in the flink-parent module and allowing sub-modules to selectively include it. However, this approach still cannot solve the issue of transitive dependencies. Therefore, considering introducing new rules in ArchTest to prohibit the usage of JUnit 4 in modules that have already completed the migration. -- This message was sent by Atlassian Jira (v8.20.10#820010)