net.jangaroo.jooc.mvnplugin.test
Class PhantomJsTestRunner

java.lang.Object
  extended by net.jangaroo.jooc.mvnplugin.test.PhantomJsTestRunner

public class PhantomJsTestRunner
extends Object


Field Summary
static Pattern LOG_LEVEL_PATTERN
           
 
Constructor Summary
PhantomJsTestRunner(String phantomjs, String testPageUrl, String testResultFilename, String testRunner, int timeout, int maxRetriesOnCrashes, org.apache.maven.plugin.logging.Log log)
           
 
Method Summary
 boolean canRun()
           
 boolean execute()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_LEVEL_PATTERN

public static final Pattern LOG_LEVEL_PATTERN
Constructor Detail

PhantomJsTestRunner

public PhantomJsTestRunner(String phantomjs,
                           String testPageUrl,
                           String testResultFilename,
                           String testRunner,
                           int timeout,
                           int maxRetriesOnCrashes,
                           org.apache.maven.plugin.logging.Log log)
Parameters:
phantomjs - the binary to execute
testPageUrl - the URL of the test page to load
testResultFilename - the file to write the test result into
testRunner - the test bootstrap script to be loaded in phantomjs
timeout - timeout in seconds
maxRetriesOnCrashes - number of retries when receiving unexpected result from phantomjs (crash?)
log - the maven log
Method Detail

execute

public boolean execute()
                throws org.codehaus.plexus.util.cli.CommandLineException
Throws:
org.codehaus.plexus.util.cli.CommandLineException

canRun

public boolean canRun()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002–2014 CoreMedia AG. All rights reserved.