mirror of https://github.com/sbt/sbt.git
Add definedTestNames test (#9210)
This commit is contained in:
parent
49f19feef1
commit
00bd61d411
|
|
@ -0,0 +1,8 @@
|
|||
scalaVersion := "2.13.18"
|
||||
|
||||
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.19.0" % Test
|
||||
|
||||
InputKey[Unit]("checkDefinedTestNames") := {
|
||||
val actual = (Test / definedTestNames).value
|
||||
assert(actual == Seq("example.Test1"), actual)
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
package example
|
||||
|
||||
object Test1 extends org.scalacheck.Properties("Test1")
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
> checkDefinedTestNames
|
||||
$ copy-file src/test/scala/Test1.scala tmp/Test1.scala
|
||||
$ delete src
|
||||
-> checkDefinedTestNames
|
||||
$ copy-file tmp/Test1.scala src/test/scala/Test1.scala
|
||||
$ exists src/test/scala/Test1.scala
|
||||
> checkDefinedTestNames
|
||||
Loading…
Reference in New Issue