本课程教你用JUnit 5为Kotlin代码编写单元测试,涵盖设置、断言扩展及MockK模拟框架,适用于企业、桌面及移动应用开发。
原始标题:Kotlin Unit Testing with JUnit

Kevin Jones | Duration: 3:27 h | Video: H264 1280×720 | Audio: AAC 48 kHz 2ch | 613 MB | Language: English
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.
此处内容需要权限查看
会员免费查看



