# Kotest vs Junit
<!-- slide: https://hackmd.io/@P83iZDmaSVSsE9sRu3NRog/Hygxd-2O3
-->
---
---
### JUnit test Example

---
### JUnit test Example
加個註解,可讀性差不多到極限了

---
### Kotest Example

---
### Test Report
Kotest 會告訴你哪一段是ok / fail 的

vs JUnit

---
### Kotest Other Style - String Spec

---
### Kotest Other Style - Free Spec

---
### Kotest Advantage
- Lot of testing style
- Testcase grouping
- Ordering policy
- Assert libs
- ...
---
### Android Stuido IDE plugin
Search `Kotest`

---
### Ref
https://kotest.io/docs/quickstart
{"description":"View the slide with \"Slide Mode\".","title":"Unit Test Framework - Kotest","contributors":"[{\"id\":\"3fcde264-399a-4954-ac13-db11bb7351a2\",\"add\":2491,\"del\":1436}]"}