From 377685145e8031fae7129d26d1ee4bd72f538355 Mon Sep 17 00:00:00 2001 From: Sequencer Date: Sat, 22 Feb 2020 02:12:12 +0000 Subject: mill: add testOnly (#1357) --- build.sc | 6 ++++++ 1 file changed, 6 insertions(+) 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") -- cgit v1.2.3