Testing
Testing LiveData in JUnit 4 and JUnit 5
·3 mins
Testing
Architecture
Livedata
Architecture components are one of the most exciting things that happened to Android in the past years. But how do you effectively go about and testing this?
Can you fix the test?
·8 mins
Testing
Kotlin
Cleancode
Learning from analyzing code is one of the greatest ways to improve your skills. Can you spot the mistakes in the tests below?
This post brings a fun little quiz for both testing gurus as novices, with a deep dive into the how and why of awesome tests.
The 100% code coverage problem
·4 mins
Android
Testing
Coverage
While you may be tempted to strive for 100% code coverage, that would be a horrible idea. Besides some code being hard to test, the concept of coverage is actually fundamentally limited.
Write awesome unit tests
·4 mins
Android
Testing
Cleancode
If you can code, you can also write unit tests. Writing awesome tests on the other hand is a different story. Don’t fool yourself: Unit testing code is production code that you will need to maintain, refactor and build upon for years to come.
Using Mockito 2.x on Android
·2 mins
Android
Mockito
Testing
The Mockito team is on fire lately! Not only did they add support to mock final classes and methods, but now they allow running Mockito directly onto an actual Android device.
Extending Mockito
·3 mins
Android
Mockito
Testing
Due to its clean simple api, Mockito has become world’s most popular Java mocking framework. After having covered all of its basics, it’s time to spice things up and start extending Mockito.
The hidden cost of code coverage
·2 mins
Android
Tools
Gradle
Testing
Code coverage is an awesome way to motivate you and your team to write more tests. But did you know that simply enabling it slows down your build significantly?
Testing made sweet with a Mockito
·2 mins
Android
Mockito
Testing
Droidcon
At Droidcon Berlin 2016 I had a great time talking about testing using the Mockito framework. While the talk wasn’t recorded unfortunately, the great folks at Voice Republic recorded an audio version which you can listen to as a podcast or together with the slides.