From 60c764b4b0be3f7da42971da5575f680c2617da9 Mon Sep 17 00:00:00 2001 From: Eruis2579 Date: Thu, 12 Feb 2026 00:32:38 -0500 Subject: [PATCH] Add scripted test: testOnly with pattern filter (com.test...) Address review: cover scenario where testOnly is run with a pattern rather than an explicit FQN; @DoNotDiscover remains excluded. --- .../src/sbt-test/tests/i5609-do-not-discover-testonly/test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test b/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test index f91c91f73..256dbd9f4 100644 --- a/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test +++ b/sbt-app/src/sbt-test/tests/i5609-do-not-discover-testonly/test @@ -1,6 +1,7 @@ # #5609: When explicitly requested via testOnly, @DoNotDiscover suite should run. # First: full test run must exclude @DoNotDiscover (TestSpec2). # Second: testOnly with explicit FQN must run TestSpec2. +# Third: testOnly with a pattern filter (com.test...) — no explicit FQN, so @DoNotDiscover stays excluded. > clean > testFull @@ -13,3 +14,6 @@ $ absent target/SuiteCompleted-TestSpec2 > testOnly com.test.TestSpec2 $ exists target/SuiteStarting-TestSpec2 $ exists target/SuiteCompleted-TestSpec2 + +> clean +> testOnly com.test...