Skip to content

peternic/buster-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

buster-maven-plugin

A maven plugin for running BusterJS tests.

Getting started

For the moment, this plugin does not exists in the public maven repo. So for now you will need to clone the project and do a mvn install

Configure plugin

The plugin has 2 modes;

  • With local buster server, where it will use a local running buster. You need to start a buster server manually and use the desired browser to capture the tests, then run the buster test goal.
  • With embedded buster server, where the plugin will start a buster server on a random port and use PhantomJS as a headless browser to capture the tests.

With local buster server

<plugin>
	<groupId>org.mw.buster</groupId>
	<artifactId>buster-maven-plugin</artifactId>
	<version>1.4.2-SNAPSHOT</version>
	<configuration>
		<busterJsFilePath>${basedir}/src/test/javascript/buster.js</busterJsFilePath>
		<hostname>localhost</hostname>
		<port>1234</port>
		<buildDirectory>${project.build.directory}</buildDirectory>
		<skip>false</skip>
	</configuration>
</plugin>

With embedded buster server and PhantomJS

For this mode to work you will need to install PhantomJS and be accessible on PATH

<plugin>
	<groupId>org.mw.buster</groupId>
	<artifactId>buster-maven-plugin</artifactId>
	<version>1.4.2-SNAPSHOT</version>
	<configuration>
		<busterJsFilePath>${basedir}/src/test/javascript/buster.js</busterJsFilePath>
		<embeddedBusterServer>true</embeddedBusterServer>
		<buildDirectory>${project.build.directory}</buildDirectory>
		<skip>false</skip>
	</configuration>
	<dependencies>
		<dependency>
			<groupId>org.seleniumhq.selenium</groupId>
			<artifactId>selenium-java</artifactId>
			<version>${version.selenium}</version>
		</dependency>
		<dependency>
			<groupId>com.github.detro.ghostdriver</groupId>
			<artifactId>phantomjsdriver</artifactId>
			<version>${version.phantomjs}</version>
		</dependency>
	</dependencies>
</plugin>

Running tests

mvn buster:test

About

Maven plugin for Buster.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%