diff options
| author | Leway Colin | 2019-09-20 03:37:47 +0800 |
|---|---|---|
| committer | Jim Lawson | 2019-09-19 12:37:47 -0700 |
| commit | b03006e30904ed51fa94a47fbfd0f7b199498ca1 (patch) | |
| tree | bff06d2ba54248069601518c83cdab197230ae81 /build.sc | |
| parent | 4d861482c38851311f1751319519d90aac872e4e (diff) | |
Add running one testcase to mill (#1103)
Diffstat (limited to 'build.sc')
| -rw-r--r-- | build.sc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. |
