Questions tagged [jasmine-maven-plugin]

The maven plugin jasmine-maven-plugin helps you to execute your jasmine test scripts as part of a maven build.

Jasmine is a behavior-driven development framework for testing JavaScript code. To find out more about Jasmine have a look at http://pivotal.github.com/jasmine/

To run Jasmine test as part of your maven build this plugin might help you. There are two uses for this plugin (after you have added it to your project):

  • prepare the you jasmine test scripts to be run in a browser so you can interactively test them with mvn jasmine:bdd

  • run the tests as part of the maven build using HtmlUnit when you run mvn test

For more information: http://searls.github.com/jasmine-maven-plugin/

38 questions
0
votes
1 answer

Maven build with jasmine test succeeds but jenkins displays it as a failure

We have a project that is built with Maven and includes a set of Jasmine tests. These are run using the jasmine-maven-plugin and runs in the headless mode. The project builds correctly when run from the command line. However when run from jenkins, …
richard
  • 2,887
  • 5
  • 26
  • 36
0
votes
1 answer

Cannot get the scope os a controller in anugular.js

I am trying to test a javascript file which has in it a controller and some HTML DOM elements which it interacts with. The class under test is: function BaseConceptMenu(options) { var baseConceptMenu = new BaseMenu(options); //Public function…
0
votes
1 answer

From jasmine-maven-plugin getting setOnopen Runtime exception

I am trying to implement jasmine-maven-plugin for my project. In my project there are multiple separate web projects, I successfully integrate the above plugin in all of my web projects except one. I have used HtmlUnit driver for all of my web…
0
votes
2 answers

AngularJS jasmine maven plugin preload sources paths issue

I'm wondering why some paths to javascript libs are working in the preload sources section and some aren't. E.g. ${project.basedir}/src/test/webapp/js/lib/jquery-1.8.3.js …
schnesim
  • 441
  • 1
  • 3
  • 17
0
votes
1 answer

How to see results of all test specs in browser with jasmine maven plugin

I'm using the jasmine maven plugin and my pom.xml looks like this: com.github.searls jasmine-maven-plugin 1.2.0.0
dnc253
  • 39,967
  • 41
  • 141
  • 157
0
votes
1 answer

jasmine-maven-plugin jasmine:bdd works mvn test breaks the build

I have set up a maven project to use the jasmin-maven-plugin for testing my javascript code. The plugin is set up like this: com.github.searls jasmine-maven-plugin
Lars Juel Jensen
  • 1,643
  • 1
  • 22
  • 31
0
votes
2 answers

Does HtmlUnit and jasmine-maven-plugin support HTML5 sessionStorage?

I am trying to test a JavaScript function that uses HTML5 sessionStorage on jasmine-maven-plugin. Jasmine uses HtmlUnit to emulate a web browser. The problem is that when the automated tests are running during maven build, it says: Error: Expected…
0
votes
1 answer

Anyway to get my Jasmine tests to run against the local gae server

I'm trying to test my backbone front-end using Jasmine against our back-end API. Our application is built on google app engine, and our build system uses maven, so I'm using the jasmine-maven-plugin to facilitate testing the front-end integration…
tkone
  • 22,092
  • 5
  • 54
  • 78
1 2
3