summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLeway Colin2019-09-20 03:37:47 +0800
committerJim Lawson2019-09-19 12:37:47 -0700
commitb03006e30904ed51fa94a47fbfd0f7b199498ca1 (patch)
treebff06d2ba54248069601518c83cdab197230ae81 /build.sc
parent4d861482c38851311f1751319519d90aac872e4e (diff)
Add running one testcase to mill (#1103)
Diffstat (limited to 'build.sc')
-rw-r--r--build.sc9
1 files changed, 9 insertions, 0 deletions
diff --git a/build.sc b/build.sc
index e379446b..634b33e7 100644
--- a/build.sc
+++ b/build.sc
@@ -99,6 +99,10 @@ object chisel3 extends Cross[ChiselTopModule](crossVersions: _*) {
chisel3(crossVersions.head).test.test()
}
+ def testOne(args: String*) = T.command {
+ chisel3(crossVersions.head).test.testOne(args: _*)
+ }
+
def publishLocal = T{
chisel3(crossVersions.head).publishLocal()
}
@@ -224,6 +228,11 @@ trait AbstractChiselModule extends PublishChiselModule with CommonBuild.BuildInf
ivy"org.scalacheck::scalacheck:1.14.0"
)
def testFrameworks = Seq("org.scalatest.tools.Framework")
+
+ def testOne(args: String*) = T.command {
+ super.runMain("org.scalatest.run", args: _*)
+ }
+
}
// This is required for building a library, but not for a `run` target.