Created
July 29, 2016 05:20
-
-
Save yanana/cd0844ffce4d5c856790faa3d70c4f81 to your computer and use it in GitHub Desktop.
Solving ScalaTest#427 by upgrading ScalaTest to 3.0.0-RC4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sbt.version = 0.13.12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scalaVersion := "2.11.8" | |
| // libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.5" % "test" | |
| libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0-RC4" % "test" | |
| libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.13.2" % "test" | |
| fork in Test := true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.scalatest.prop.GeneratorDrivenPropertyChecks | |
| import org.scalatest.{ Matchers, WordSpec } | |
| class SomeSpec extends WordSpec with Matchers with GeneratorDrivenPropertyChecks { | |
| "this test should fail without sbt exceptions" in { | |
| forAll { value: Int => | |
| assert(value !== value) | |
| // value shouldNot equal(value) | |
| } | |
| } | |
| "this test should pass without any exceptions in the console" in { | |
| forAll { value: Int => | |
| value shouldEqual value | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment