Split test-quick test into two

This commit is contained in:
Eugene Yokota 2025-03-23 22:21:06 -04:00
parent 57b7317251
commit 690a3947f2
15 changed files with 17 additions and 9 deletions

View File

@ -0,0 +1,7 @@
> testQuick
# https://github.com/sbt/sbt/issues/5504
$ copy-file changed/MathFunction.scala src/test/scala/MathFunction.scala
> compile
> debug
-> testQuick MathFunctionTest

View File

@ -0,0 +1,10 @@
Global / cacheStores := Seq.empty
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
scalaVersion := "2.12.20"
lazy val root = (project in file("."))
.settings(
libraryDependencies += scalatest % Test,
Test / parallelExecution := false
)

View File

@ -7,7 +7,6 @@
# Non-API change
$ copy-file changed/A.scala src/main/scala/A.scala
> compile
$ sleep 2000
# Create is run. Delete is not since it doesn't have src/main dependency.
-> testQuick
> testOnly Delete
@ -19,7 +18,6 @@ $ sleep 2000
$ copy-file changed/B.scala src/main/scala/B.scala
> compile
$ sleep 2000
-> testQuick Create
> testOnly Delete
# Previous run of Create failed, re-run.
@ -28,13 +26,6 @@ $ sleep 2000
$ copy-file changed/Base.scala src/test/scala/Base.scala
> Test/compile
$ sleep 2000
-> testQuick Create
> testQuick Delete
> testQuick Create
# https://github.com/sbt/sbt/issues/5504
$ copy-file changed/MathFunction.scala src/test/scala/MathFunction.scala
> compile
$ sleep 2000
-> testQuick MathFunctionTest