top of page
tamas-bazsonyi.jpg

Sergio Sastre Flórez

appDev GmbH & Co. KG, Lead Android Developer

I am currently working as a consultant, with over 8 years of experience on Android development. A big passionate of software testing in general, I’ve been recently writing blog posts on testing and contributing to open source testing frameworks like KasperskyLab/Kaspresso for Android.
 When I am not coding or with my family, I am likely playing football, running, rollerblading or snowboarding in the mountains.
I 
love challenges and making things happen.


Writing bulletproof code with property-based testing

Unit tests are an important part of the development process. Among other things, they help us verify the correctness of our code.

Thus, when writing tests, we usually pick one or two relevant examples, let the tests run green and call it a day. This is called example-based testing.

But, is that enough? Have you missed any significant case? Have you considered all edge-cases? What if any of those non-tested examples would make the app crash?

Fear not, we can fill that gap with property-based tests. Let me show to you how, step by step.

In this tech-talk you will learn:
- some easy tips to improve your unit tests
- why example-based unit tests are not always enough
- how property-based testing can make your tests more robust
- property-based testing in very detail:
* what it is
* its pros and cons
* which tools/frameworks are available for implementing them
* how to make the most out of them

And all that by using as examples some features you would find in most Android apps, like "login" or "text editing.

bottom of page