Property Based Testing Essentials
Property-based testing isn't about testing one set of inputs and asserting an output; it is about testing many random inputs and asserting against a property or rule of what you are trying to achieve. You can use property-based testing against domain code or computation, but we will explore databases in this session.
First, we will discuss the principles of property-based testing (PBT) using JQwik. Then, we will discuss what 'Arbitrary' is and how to use it to create custom objects for our test. We will then wire it together with Test Containers, which bootstraps actual databases of your choice, thus providing a complete solution and enabling us to deliver quality in our repository code. We will also discuss how this can be used in all levels of testing, like E2E and Acceptance Testing
About Daniel Hinojosa
Daniel is a programmer, consultant, instructor, speaker, and recent author. With over 20 years of experience, he does work for private, educational, and government institutions. He is also currently a speaker for No Fluff Just Stuff tour. Daniel loves JVM languages like Java, Groovy, and Scala; but also dabbles with non JVM languages like Haskell, Ruby, Python, LISP, C, C++. He is an avid Pomodoro Technique Practitioner and makes every attempt to learn a new programming language every year. For downtime, he enjoys reading, swimming, Legos, football, and barbecuing.
More About Daniel »