當我執行sbt testOnly *JoinTest*
沒有測試中發現並顯示以下輸出,但com.typesafe.slick.testkit.tests.JoinTest
應該被執行:是否可以使用sbt testOnly和Slick TestKit?
testOnly *JoinTest*
[info] Compiling 1 Scala source to /ext/git/slick/slick-testkit/target/scala-2.10/test-classes...
[info] Passed: Total 0, Failed 0, Errors 0, Passed 0
[info] No tests to run for testkit/test:testOnly
它變得更好,不僅可以運行單個測試,還可以針對單個數據庫運行該測試:'test-only - * MyTest * h2mem *'並且如果你想要一個調試轉儲,然後附加:'-Dlog.qcomp.phases = debug -Dscala.slick.ansiDump = true'。談談一個無證的功能!在淘金網終於找到了這個來自der Zeiger的寶石:https://github.com/slick/slick/issues/818#issuecomment-44819119 – virtualeyes