ブックマーク / www.scalatest.org (1)

  • ScalaTest

    Getting started with FunSpec By learning to use FunSpec, simple assertions, and the BeforeAndAfter trait, you can become productive in the BDD style of ScalaTest very quickly. You can then learn and use more of ScalaTest over time. In a FunSpec, you combine tests with text that specifies the behavior being tested. You can describe the subject being specified and tested with describe clauses and pl

    kent-where-the-light-is
    kent-where-the-light-is 2019/06/06
    “To test whether a bit of code produces an expected exception, use intercept. Place the expected exception type in square brackets after intercept, and the bit of code in curly braces, like this:”
  • 1