Session Content
Slides
Slides available as pdf.
Code
The code is available on Github <3
Discussed Topics:
- Mutation Testing for Java: PiTest
- Mutation Testing for Javascript/Scala/C#: Stryker
- EqualsVerifier
- H2 database
- Liquibase
- WireMock
- TestContainers
- Consumer Contracts
Q&A
Feel free to reach out to me @TCoolsIT on Twitter if you have additional questions!
How do you handle Data? Do you clear the database between each test?
Actually, we have a BeforeEach somewhere in our code which runs a ton of TRUNCATE statements on all tables that can be truncated. It’s not that pretty but it is pragmatic and works. :-)
If it ever slows down our tests too much where we don’t feel comfortable with that approach anymore, then we’ll look into it. For now, it’s good enough!