Are you programming for Android and wondering how to write tests for your app? Or maybe you don't have any tests in your project and don't know how to live? Get to know my philosophy of creating tests for Android.
Most of the times while stubbing with Mockito or MockK you will use doReturn construction. But do you know, that you can stub your test double method in other way – with doAnswer. Let's take a look a both stubbing types.
When you have existing test suite containing jUni4 tests and you want to migrate slowly to jUnit5 to make use of new APIs and modern test engine, you may encounter some issues – not all tests will be visible in reports.
Welcome to November issue of JVM Testing Monthly. This month you will find selection of Kotlin content!
Keep learning and get better at unit testing everyday.
Welcome to October issue of JVM Testing Monthly! This month you will find curated list blogposts and articles about testing techniques, recordings from SpringOne conference and Android specific content!
Keep learning and get better at unit testing everyday.
Welcome to September issue of JVM Testing Monthly! This month you will find curated list blogposts and articles about testing techniques, effective usage of Kotlin and some Android goodies.
Keep learning and get better at unit testing everyday.
Writing tests involves repeating some patterns over and over again. IntelliJ IDEA can shorten the process of test creation with the help of live templates.
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.
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.