moko-widgets icon indicating copy to clipboard operation
moko-widgets copied to clipboard

Introduce Unit Testing for moko-widgets

Open Gamadril opened this issue 5 years ago • 2 comments

Just an idea to improve/keep code quality level.

Gamadril avatar Apr 01 '20 11:04 Gamadril

maybe you can show some sample how you see it? or reference

Alex009 avatar Apr 02 '20 18:04 Alex009

I'm quite new to kotlin and cannot tell much about the best way to do it. However I found that article quite informative: https://phauer.com/2018/best-practices-unit-testing-kotlin/ In general it should work like unit testing in any other language - at the end you want to test the functionality of the own code. Here is how it could look like - a small project I quickly made for MarginValues from the https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-gradle-kotlin template and gradle documentation.

KotlinUnitTesting.zip

Gamadril avatar Apr 02 '20 21:04 Gamadril