How to test AMD module as part of gradle build?


Hi there,

I have a gradle build that generates a main and test AMD module through the compileKotlin2Js and compileTestKotlin2Js tasks respectively.

I’m currently loading a QUnit test runner page in my browser after each build to check whether my unit tests passed. I tried to add a test step to my gradle build that runs those tests in PhantomJS. However, the complexity spiraled out of control and I had to revert.

Not sure how to proceed and I’d appreciate any advice or pointer to a working sample.
You can check the current state of my project here:

Thanks in advance!