I have been investigating the best way to do JS unit testing in our maven CI environment. What I currently have cobbled together is the following in my maven project:
This is an old question, but I thought I would link to a project of mine that uses PhantomJS and QUnit to run with TestNG:
The project is called qunit-testng. I also have a sample project that shows the library in use.
Here's a screenshot of test output: