net.jangaroo.jooc.mvnplugin.test
Class JooTestMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.jangaroo.jooc.mvnplugin.test.JooTestMojoBase
          extended by net.jangaroo.jooc.mvnplugin.test.JooTestMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JooTestMojo
extends JooTestMojoBase

Executes JooUnit tests. Unpacks all dependency to its output directory, generates a tests.html which starts up the class testSuiteName. Since a real browser is the best JavaScript execution environment the test now fires up a jetty on a random port between jooUnitJettyPortLowerBound and jooUnitJettyPortUpperBound contacts a selenium server given by jooUnitSeleniumRCHost. The Selenium Remote Control then starts a browser, navigates the browser to the Jetty we just started and waits for jooUnitTestExecutionTimeoutms for the results to appear on the browser screen.


Field Summary
 
Fields inherited from class net.jangaroo.jooc.mvnplugin.test.JooTestMojoBase
project, testOutputDirectory, testResources, testsHtml
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JooTestMojo()
           
 
Method Summary
 void execute()
           
 void setSkip(boolean b)
           
 void setSkipTests(boolean b)
           
 void setTestFailureIgnore(boolean b)
           
 void setTestOutputDirectory(File testOutputDirectory)
           
 void setTestResources(ArrayList<org.apache.maven.model.Resource> resources)
           
 void setTestSourceDirectory(File f)
           
 
Methods inherited from class net.jangaroo.jooc.mvnplugin.test.JooTestMojoBase
findJars, getJettyUrl, isTestAvailable, jettyRunTest, stopServerIgnoreException, wrap
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JooTestMojo

public JooTestMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

setSkip

public void setSkip(boolean b)

setSkipTests

public void setSkipTests(boolean b)

setTestSourceDirectory

public void setTestSourceDirectory(File f)

setTestResources

public void setTestResources(ArrayList<org.apache.maven.model.Resource> resources)

setTestFailureIgnore

public void setTestFailureIgnore(boolean b)

setTestOutputDirectory

public void setTestOutputDirectory(File testOutputDirectory)


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