I am searching the web for installing jasmine in order to test my javascript files. Most places assumes I will install it as a gem in a ruby project. But I am running velocity / Java project.
How do I install it? And is there a nice and easy guide to explain step-by-step how to make it work?
There’s a Maven plugin for that. Here’s an example of how to use it:
First, in you project’s POM, configure the plugin to be executed:
Then write specifications, in
src/test/javascript/spec/, using Jasmine’s standards.Next time you
mvn installyour project, Jasmine tests will be executed as well, failing the build if something is wrong.