|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
net.jangaroo.jooc.mvnplugin.test.JooTestMojo
public class JooTestMojo
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 | |
|---|---|
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected boolean |
skip
Set this to 'true' to bypass unit tests entirely. |
protected boolean |
skipTests
Set this to 'true' to skip running tests, but still compile them. |
protected boolean |
testFailureIgnore
Set this to true to ignore a failure during testing. |
protected File |
testOutputDirectory
Output directory for the jangaroo artifact unarchiver. |
protected List<org.apache.maven.model.Resource> |
testResources
the tests.html file relative to the test resources folder |
protected String |
testsHtml
the tests.html file relative to the test resources folder |
protected File |
testSourceDirectory
Source directory to scan for files to compile. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
JooTestMojo()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
protected boolean |
isTestAvailable()
|
| 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 |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected File testOutputDirectory
protected File testSourceDirectory
protected String testsHtml
protected List<org.apache.maven.model.Resource> testResources
protected boolean skip
protected boolean skipTests
protected boolean testFailureIgnore
| Constructor Detail |
|---|
public JooTestMojo()
| Method Detail |
|---|
protected boolean isTestAvailable()
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||