Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Unit Testing for moko-widgets #213

Open
Gamadril opened this issue Apr 1, 2020 · 2 comments
Open

Introduce Unit Testing for moko-widgets #213

Gamadril opened this issue Apr 1, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Gamadril
Copy link

Gamadril commented Apr 1, 2020

Just an idea to improve/keep code quality level.

@Alex009
Copy link
Member

Alex009 commented Apr 2, 2020

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

@Alex009 Alex009 added the enhancement New feature or request label Apr 2, 2020
@Gamadril
Copy link
Author

Gamadril commented Apr 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants