From b03006e30904ed51fa94a47fbfd0f7b199498ca1 Mon Sep 17 00:00:00 2001 From: Leway Colin Date: Fri, 20 Sep 2019 03:37:47 +0800 Subject: Add running one testcase to mill (#1103) --- build.sc | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- cgit v1.2.3