Testlerimi sbt ile çalıştırmaya çalışıyorum ve sonra test ediyorum.ScalaTest on sbt hiçbir test çalıştırmıyor
Benim build.sbt bu
lazy val scalatest = "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test"
lazy val root = (project in file(".")).
settings(
name := "highlight2pdf",
version := "0.1",
scalaVersion := "2.11.6",
libraryDependencies += scalatest
)
benziyor Ve ben sadece
import collection.mutable.Stack
import org.scalatest._
class ExampleSpec extends FlatSpec with Matchers {
"A Stack" should "pop values in last-in-first-out order" in {
val stack = new Stack[Int]
stack.push(1)
stack.push(2)
stack.pop() should be (2)
stack.pop() should be (1)
}
it should "throw NoSuchElementException if an empty stack is popped" in {
val emptyStack = new Stack[Int]
a [NoSuchElementException] should be thrownBy {
emptyStack.pop()
}
}
}
Yine her zaman göstermek
test/scala üzerinde örnek testi koydu:[bilgi] Hayır testleri idam edildi.
İşe yarayan işler işe yaramıyor mu?