From da936f4f70104db2b1d491a77886825f88a5c07d Mon Sep 17 00:00:00 2001 From: Frank Chen Date: Tue, 4 Aug 2026 20:39:19 +0800 Subject: [PATCH 1/2] docs: require JUnit 5 for new tests --- AGENTS.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 05e8c49e71a9..fa36d2926155 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -52,6 +52,8 @@ Real-time analytics database. Java, Maven, multi-module project. ## Running Tests +Use JUnit 5 (`org.junit.jupiter`) for new test cases; do not add new tests using JUnit 4 (`org.junit`). + Use these flags for faster tests: `-Pskip-static-checks -Dweb.console.skip=true -T1C` **Single test method:** From 9ff5d01e2902b0a29abb4b3d51680800fda59f94 Mon Sep 17 00:00:00 2001 From: Frank Chen Date: Fri, 7 Aug 2026 09:44:46 +0800 Subject: [PATCH 2/2] docs: clarify JUnit 5 guidance for legacy tests --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index fa36d2926155..864466d5a3fa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -52,7 +52,7 @@ Real-time analytics database. Java, Maven, multi-module project. ## Running Tests -Use JUnit 5 (`org.junit.jupiter`) for new test cases; do not add new tests using JUnit 4 (`org.junit`). +Use JUnit 5 (`org.junit.jupiter`) for new test classes and for new test methods added to existing JUnit 5 classes. Before adding a JUnit 5 method to an existing JUnit 4 (`org.junit`) class, migrate the class and its module to JUnit 5; otherwise, keep the new method in JUnit 4 until that migration is complete. Use these flags for faster tests: `-Pskip-static-checks -Dweb.console.skip=true -T1C`