Skip to content

Instantly share code, notes, and snippets.

@hascode
Created March 25, 2014 09:56
Show Gist options
  • Save hascode/4237771132d9fbf686eb to your computer and use it in GitHub Desktop.
Save hascode/4237771132d9fbf686eb to your computer and use it in GitHub Desktop.
Maven Plugin Setup for phantomJS + Jasemine
<plugin>
<groupId>com.github.klieber</groupId>
<artifactId>phantomjs-maven-plugin</artifactId>
<version>0.2.1</version>
<executions>
<execution>
<goals>
<goal>install</goal>
</goals>
</execution>
</executions>
<configuration>
<version>1.9.2</version>
</configuration>
</plugin>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.3.1.4</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<jsSrcDir>src/main/webapp/js/app</jsSrcDir>
<jsTestSrcDir>src/main/webapp/js/specs</jsTestSrcDir>
<preloadSources>
</preloadSources>
<webDriverClassName>org.openqa.selenium.phantomjs.PhantomJSDriver</webDriverClassName>
<webDriverCapabilities>
<capability>
<name>phantomjs.binary.path</name>
<value>${phantomjs.binary}</value>
</capability>
</webDriverCapabilities>
<haltOnFailure>false</haltOnFailure>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment