Mocha Plugin for Maven

Work on a project that starts from the Apache Maven environment (based on Java).

The front end uses Mocha tests, and I would like to be able to run leftovers from Maven ...

any ideas?

Mocha: http://visionmedia.github.com/mocha/

Maven: http://maven.apache.org/

+7
source share
1 answer

When you say the front end, do you mean in the browser?

This may be a little different than what you want, but I got Maven to work with Selenium + Jasmine before. Maven with the selenium plugin runs a browser instance for reports. Tests, however, are run from the browser and they will not return to Maven.

If you can make mocha in the console instead, I think a more ideal solution would be to create a maven plugin that just executes the node command. Mocha's reporting flexibility should allow you to bring it back to Maven.

+3
source

All Articles