summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
Diffstat (limited to 'build.sc')
-rw-r--r--build.sc6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.sc b/build.sc
index eceb15fc..7084a1f9 100644
--- a/build.sc
+++ b/build.sc
@@ -93,6 +93,12 @@ class chisel3CrossModule(crossVersionValue: String) extends CommonModule with Pu
) ++ ivyCrossDeps
def testFrameworks = Seq("org.scalatest.tools.Framework")
+
+ // a sbt-like testOnly command.
+ // for example, mill -i "chisel3[2.12.10].test.testOnly" "chiselTests.BitwiseOpsSpec"
+ def testOnly(args: String*) = T.command {
+ super.runMain("org.scalatest.run", args: _*)
+ }
}
override def buildInfoPackageName = Some("chisel3")