Advanced Testing Patterns

As presented @ JNation

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. [Read More]

Advanced Testing Patterns

As presented @ Computerfutures

Session Content Slides Slides available as pdf. Code The code is available on Github <3 Discussed Topics: H2 database Liquibase WireMock TestContainers Consumer Contracts Q&A Do the tools described only work with Spring? No! They are separate projects in their own right. The only one that is VERY closely related to Spring are the Spring Cloud Contracts. I’ve tried to figure it out, but I’m pretty sure you still need Spring for that one. [Read More]

Advanced Testing Patterns

As presented @ KDG University College

Session Content Slides Slides available as pdf. Code The code is available on Github <3 Discussed Topics: H2 database Liquibase WireMock TestContainers Consumer Contracts Q&A Why do you call the instance of the class you are testing “sut”? “sut” is short for “Subject/System Under Test” and makes it clear what class the focus of the test is. If your testclass is very big, I have found that using “sut” is easier than relying on the name of the testclass (scrolling up). [Read More]