jeudi 14 janvier 2016

automating javascript testing in a maven based project

I have a maven based Java project which also contains some javascript functions which I'd like to be able to test. I'm using QUnit (but could switch to another js testing framework) to write the tests, but I have to execute the index.html to see the tests running in a browser window.

Is there a current and working maven plugin that will run those tests for me and ideally present the results together with the regular server side junit tests that I already have?

I've already tried to use what is currently out there but most of the solutions are old and with broken documentation. The closest I could get was by using http://ift.tt/1OjMEaw but it runs all js tests in a single junit test and it stops on the first failure.

Aucun commentaire:

Enregistrer un commentaire