What You'll Learn
By the end of this workshop you'll be able to:
- Define property-based testing.
- Execute a property-based test using jqwik.
- Create reports from jqwik tests.
- Run a property-based test against a SpringBoot server.
About This Workshop
If you are writing tests for a server and you have access to a spec like OpenAPI or other documentation, property-based testing can help you test thousands of potential outcomes for as much effort as, or less effort than, a traditional unit test suite. In this workshop, we'll learn how to use jqwik along with JUnit to write property-based test for a Spring Boot application. The knowledge you gain will help you make your tests more readable, more resilient, and more maintainable.
This workshop has been designed to be attended live. If you can’t make the scheduled time, it will stay available to replay in CrowdCast for 7 days. To get the most out of it, we highly recommend you attend it live!
A Java development environment:
- Some form of the JDK/JRE.
- An editor where Java projects can be compiled. For example, IntelliJ.
If you are working in Java every day, this should be on your work computer already, but if not, you'll want to get this set up. The easiest way is installing IntelliJ and compiling one of their template projects. If you can do this, then you'll be able to compile everything from the workshop.
A GitHub account.
The entire workshop will be done through pull requests to GitHub, so you will need to frequently make PRs and pull the most recent changes from a repo.