# Kotest vs Junit <!-- slide: https://hackmd.io/@P83iZDmaSVSsE9sRu3NRog/Hygxd-2O3 --> --- --- ### JUnit test Example ![](https://hackmd.io/_uploads/B1AJYW3On.png) --- ### JUnit test Example 加個註解,可讀性差不多到極限了 ![](https://hackmd.io/_uploads/BywmFWhd3.png) --- ### Kotest Example ![](https://hackmd.io/_uploads/SJ4Ctb2_3.png) --- ### Test Report Kotest 會告訴你哪一段是ok / fail 的 ![](https://hackmd.io/_uploads/SyfNnZhOh.png) vs JUnit ![](https://hackmd.io/_uploads/Hklw2b2Oh.png) --- ### Kotest Other Style - String Spec ![](https://hackmd.io/_uploads/HJaAiWhOh.png) --- ### Kotest Other Style - Free Spec ![](https://hackmd.io/_uploads/rk3l2-2u2.png) --- ### Kotest Advantage - Lot of testing style - Testcase grouping - Ordering policy - Assert libs - ... --- ### Android Stuido IDE plugin Search `Kotest` ![](https://hackmd.io/_uploads/rytpjokY3.png) --- ### 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}]"}
    122 views