This is an automated email from the ASF dual-hosted git repository.

Philippus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko.git


The following commit(s) were added to refs/heads/main by this push:
     new c6454b2d68 Pass input from testQuickUntilPassed to testQuickRecursive 
(#3344)
c6454b2d68 is described below

commit c6454b2d68323e4e90b905a905cda6b7dc2ee6bd
Author: Philippus Baalman <[email protected]>
AuthorDate: Tue Jul 14 14:09:52 2026 +0200

    Pass input from testQuickUntilPassed to testQuickRecursive (#3344)
---
 project/PekkoBuild.scala           |  1 +
 project/TestQuickUntilPassed.scala | 12 ++++++++----
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/project/PekkoBuild.scala b/project/PekkoBuild.scala
index 5eeaea540a..a74535152c 100644
--- a/project/PekkoBuild.scala
+++ b/project/PekkoBuild.scala
@@ -292,6 +292,7 @@ object PekkoBuild {
         UsefulTask("testQuick *.AnySpec",
           "Only run a selected test. When run multiple times will only run 
previously failing tests (shell mode only)"),
         UsefulTask("testQuickUntilPassed", "Runs all tests in a continuous 
loop until all tests pass"),
+        UsefulTask("testQuickUntilPassed *.AnySpec", "Only run a selected test 
in a continuous loop until it passes"),
         UsefulTask("publishLocal", "Publish current snapshot version to local 
~/.ivy2 repo"),
         UsefulTask("verifyCodeStyle", "Verify code style"),
         UsefulTask("applyCodeStyle", "Apply code style"),
diff --git a/project/TestQuickUntilPassed.scala 
b/project/TestQuickUntilPassed.scala
index ef18b938fa..1449d99ef7 100644
--- a/project/TestQuickUntilPassed.scala
+++ b/project/TestQuickUntilPassed.scala
@@ -17,6 +17,7 @@
 
 import sbt._
 import sbt.Keys._
+import sbt.complete.DefaultParsers.spaceDelimited
 import sbt.plugins.JvmPlugin
 
 object TestQuickUntilPassed extends AutoPlugin {
@@ -40,10 +41,13 @@ object TestQuickUntilPassed extends AutoPlugin {
   }
 
   override lazy val projectSettings = {
-    testQuickUntilPassed := {
-      // TODO Figure out a way to pass input from testQuickUntilPassed into 
testQuickRecursive
-      testQuickRecursive("").value
-    }
+    testQuickUntilPassed := Def.inputTaskDyn {
+      val args = spaceDelimited("<args>").parsed
+      val input =
+        if (args.nonEmpty) " " + args.mkString(" ")
+        else ""
+      testQuickRecursive(input)
+    }.evaluated
   }
 
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to