Kotlin Unit Testing with JUnit
Offered By: Pluralsight
Course Description
Overview
This course will teach you how to use JUnit 5 to write unit tests for your Kotlin code.
Junit 5 is the de-facto standard testing framework on the JVM. It is used to test application code in many areas including enterprise, desktop and mobile applications. This class will show how to setup Junit to test Kotlin code, including the some of the issues you will encounter that are unique to Kotlin. The class will also extend some of the features of Junit, for example by using an assertions library to extend the range and flexibility of the assertions that are available. Finally we will look at ‘mocking’, something that JUnit does not provide itself, for this we will use the MockK, a mocking framework written in and for Kotlin.
Junit 5 is the de-facto standard testing framework on the JVM. It is used to test application code in many areas including enterprise, desktop and mobile applications. This class will show how to setup Junit to test Kotlin code, including the some of the issues you will encounter that are unique to Kotlin. The class will also extend some of the features of Junit, for example by using an assertions library to extend the range and flexibility of the assertions that are available. Finally we will look at ‘mocking’, something that JUnit does not provide itself, for this we will use the MockK, a mocking framework written in and for Kotlin.
Syllabus
- Course Overview 1min
- Writing Your First Test 34mins
- Writing Better Tests with JUnit 5 and Kotlin 33mins
- Parameterized Tests 48mins
- Writing Fluent Assertions with the Kluent Library in Kotlin 18mins
- Writing Mocks with MockK 29mins
- Testing Hard to Test Things 41mins
Taught by
Pluralsight
Related Courses
Kotlin Bootcamp for ProgrammersGoogle via Udacity Введение в язык Котлин
St. Petersburg State Polytechnic University via Coursera Kotlin for Java Developers
JetBrains via Coursera Developing Android Apps with Kotlin
Google via Udacity Advanced Android with Kotlin
Google via Udacity