net.jangaroo.jooc.mvnplugin.test
Class PhantomJsTestRunner

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

public class PhantomJsTestRunner
extends Object


Constructor Summary
PhantomJsTestRunner(String phantomjs, File testOutputDirectory, String testRunner, String testSuite, String phantomArgs, int timeout, org.apache.maven.plugin.logging.Log log)
           
 
Method Summary
 boolean canRun()
           
 boolean execute()
           
 String getTestResult()
           
 boolean isTestAvailable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhantomJsTestRunner

public PhantomJsTestRunner(String phantomjs,
                           File testOutputDirectory,
                           String testRunner,
                           String testSuite,
                           String phantomArgs,
                           int timeout,
                           org.apache.maven.plugin.logging.Log log)
Parameters:
phantomjs - the binary to execute
testOutputDirectory - the directory containing the classes to test
testRunner - the test runner script to be loaded in phantomjs
testSuite - the test suite class to run
phantomArgs - additional arguments to be passed to the phantomjs runner script
timeout - timeout in seconds
log - the maven log
Method Detail

execute

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

isTestAvailable

public boolean isTestAvailable()

canRun

public boolean canRun()

toString

public String toString()
Overrides:
toString in class Object

getTestResult

public String getTestResult()


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.