lundi 15 juillet 2019

How to have a KotlinJS module, where the business logic is tested with JUnit?

Bear with me, I don't yet see the whole picture of how multiplatform works.

What I want to achieve is have some business logic, which at the end is compiled into a a js file that I can use in an HTML, and also to have it covered with unit tests.

I can make the first park work with a simple KotlinJS Gradle project. The testing part is trickier. Thanks to kotlin-test-js I have some annotations, like @Test, but I'd like to write parameterized tests, which I can achieve with JUnit.

How is this possible?

I am fairly new to JS.. mocha, qunit, karma are all new terms for me, and I haven't got the grasp of multi module setup yet. Is there a nice (up to date!) writeup of this?

Thanks

Aucun commentaire:

Enregistrer un commentaire