Story of an attempt to test the code generated by DataBinding library.
Creating parameterized tests in Kotlin: data driven testing, collection inspections and generating test cases with FreeSpec.
Exceptions are crucial part of some Java APIs. How to assert that exceptions was thrown? In this note you will examples of various exception assertion techniques.
When the test passes, when it fails and why it crashes? In this short note we will try to find the answers for those questions.
It's usually in our best interest to keep one assertion per test method. Yet, situation when more than one check in single test method is present may occur.
In his example we will try to implement VenueDetailsViewModel in TDD style. TDD (Test Driven Development) is development technique, where developer relies on unit tests created before actual implementation.
This repository contains examples of basic unit tests written in Kotlin. In specific directories you can find gradle buildscript with needed dependencies and configuration, simple unit test and parameterized test.