Writing specifications

The fact that tests have passed successfully doesn't mean that our application works as expected. A class inherited from the Spek class contains a special DSL block that allows you to write tests along with a specification. The specification describes functional requirements, use cases, and user interactions.

Spek provides two styles of test specifications and these differ according to the functions that are used:

  • given, on, it
  • describe, it
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.177.86