/spek2-lab

Spek2 Lab

Primary LanguageKotlin

Spek2 Lab

This lab is about getting to know Spek2 for writing tests in Kotlin. You can decide yourself if you prefer to use Gherkin or Specification style. If you decide to use the Gherkin style, you can read up on what the different "keywords" mean here.

Before starting, make sure to install the Intellij Plugin, follow instructions here.

You should familiarize yourself with the domain model then start writing awesome tests. Pair up with a colleague! Teams may consider spreading out in different rooms to avoid interfering with each other.

Maybe there is a bug lurking around somewhere as well? Bonus points for spotting and fixing it :)

Are the test getting long and awkward? Remember the fold function? Maybe it can help you with command composition?

Each group should think and reflect about these things during the lab:

  1. How do you write good tests? Anything in particular that you want to convey to the other teams?
  2. Do you need mocking? Why (not)?
  3. Do you need to write integration tests?
  4. Do you need to mess around with Hibernate?
  5. How does Spek compare to JUnit?
  6. Do you prefer Spek to JUnit?
  7. Which Spek style did you chose? Why?
  8. Any other reflections?

Note that it's not allowed to drink Skånerost or use Autogiro during this lab.