Skip to content

Commit b03006e

Browse files
colin4124ucbjrl
authored andcommitted
Add running one testcase to mill (#1103)
1 parent 4d86148 commit b03006e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build.sc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ object chisel3 extends Cross[ChiselTopModule](crossVersions: _*) {
9999
chisel3(crossVersions.head).test.test()
100100
}
101101

102+
def testOne(args: String*) = T.command {
103+
chisel3(crossVersions.head).test.testOne(args: _*)
104+
}
105+
102106
def publishLocal = T{
103107
chisel3(crossVersions.head).publishLocal()
104108
}
@@ -224,6 +228,11 @@ trait AbstractChiselModule extends PublishChiselModule with CommonBuild.BuildInf
224228
ivy"org.scalacheck::scalacheck:1.14.0"
225229
)
226230
def testFrameworks = Seq("org.scalatest.tools.Framework")
231+
232+
def testOne(args: String*) = T.command {
233+
super.runMain("org.scalatest.run", args: _*)
234+
}
235+
227236
}
228237

229238
// This is required for building a library, but not for a `run` target.

0 commit comments

Comments
 (0)