Reproduce testQuick + object deps bug [merge-skip]

testQuick after code change doesn't rerun the test.
This was adopted from https://github.com/OlegYch/sbt-testQuick-bug
This commit is contained in:
OlegYch 2025-03-23 22:22:02 -04:00 committed by Eugene Yokota
parent 4d583fa19e
commit baa9a919ba
6 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,3 @@
scalaVersion := "3.6.4"
libraryDependencies += "com.eed3si9n.verify" %% "verify" % "1.0.0" % Test
testFrameworks += new TestFramework("verify.runner.Framework")

View File

@ -0,0 +1,4 @@
package example
object B:
def bbb: String = "3"

View File

@ -0,0 +1,4 @@
package example
object A:
def aaa: String = B.bbb

View File

@ -0,0 +1,4 @@
package example
object B:
def bbb: String = "2"

View File

@ -0,0 +1,7 @@
package example
object ATest extends verify.BasicTestSuite:
test("aaa ") {
assert(A.aaa == "2")
}
end ATest

View File

@ -0,0 +1,6 @@
> debug
> testQuick
$ sleep 2000
$ copy-file changes/B.scala src/main/scala/example/B.scala
-> testQuick