mirror of https://github.com/sbt/sbt.git
Activate test-quick scripted test
This commit is contained in:
parent
e42c6ccaed
commit
65cdcf434d
|
|
@ -1,9 +1,8 @@
|
|||
val scalatest = "org.scalatest" %% "scalatest" % "3.0.5"
|
||||
val scalaxml = "org.scala-lang.modules" %% "scala-xml" % "1.1.1"
|
||||
ThisBuild / scalaVersion := "2.12.12"
|
||||
|
||||
lazy val root = (project in file("."))
|
||||
.settings(
|
||||
libraryDependencies ++= List(scalaxml, scalatest),
|
||||
libraryDependencies += scalatest % Test,
|
||||
Test / parallelExecution := false
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
import org.scalatest.FlatSpec
|
||||
import org.scalatest.matchers.ShouldMatchers
|
||||
|
||||
class Create extends FlatSpec with ShouldMatchers with Base {
|
||||
class Create extends FlatSpec with Base {
|
||||
"a file" should "not exist" in {
|
||||
A(new B).foo
|
||||
marker.exists should equal(false)
|
||||
marker.createNewFile() should equal (true)
|
||||
assert(marker.exists == false)
|
||||
assert(marker.createNewFile() == true)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
import org.scalatest.FlatSpec
|
||||
import org.scalatest.matchers.ShouldMatchers
|
||||
|
||||
class Delete extends FlatSpec with ShouldMatchers with Base {
|
||||
class Delete extends FlatSpec with Base {
|
||||
"a file" should "exist" in {
|
||||
marker.exists should equal(true)
|
||||
assert(marker.exists == true)
|
||||
marker.delete()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue