de.saumya.mojo.tests
Class AbstractTestMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.AbstractGemMojo
de.saumya.mojo.tests.AbstractTestMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
- RUnitMojo
public abstract class AbstractTestMojo
- extends AbstractGemMojo
maven wrapper around some test command.
|
Field Summary |
protected boolean |
skip
skip all tests
Command line -Dmaven.test.skip=... |
protected boolean |
skipTests
skip all tests
Command line -DskipTests=... |
protected File |
summaryReport
The name of the summary (xml-)report which can be used by TeamCity and Co. |
protected File |
testReportDirectory
|
protected Boolean |
use18and19
run tests for both ruby 1.8 and 1.9
Command line -Djruby.18and19=... |
| Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo |
binDirectory, gemHome, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeOpenSSL, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzip, version |
| Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo |
args, classRealm, DEFAULT_JRUBY_VERSION, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, jrubyVersion, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| 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 |
testReportDirectory
protected File testReportDirectory
skipTests
protected boolean skipTests
- skip all tests
Command line -DskipTests=...
skip
protected boolean skip
- skip all tests
Command line -Dmaven.test.skip=...
use18and19
protected Boolean use18and19
- run tests for both ruby 1.8 and 1.9
Command line -Djruby.18and19=...
summaryReport
protected File summaryReport
- The name of the summary (xml-)report which can be used by TeamCity and Co.
AbstractTestMojo
public AbstractTestMojo()
executeWithGems
protected void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
IOException,
ScriptException,
GemException
- Specified by:
executeWithGems in class AbstractGemMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
ScriptException
GemException
runIt
protected void runIt(JRubyRun run,
TestScriptFactory testScriptFactory)
throws org.apache.maven.plugin.MojoExecutionException,
IOException,
ScriptException
- Throws:
org.apache.maven.plugin.MojoExecutionException
IOException
ScriptException
newTestScriptFactory
protected abstract TestScriptFactory newTestScriptFactory(JRubyRun.Mode mode)
runIt
protected abstract JRubyRun.Result runIt(ScriptFactory factory,
JRubyRun.Mode mode,
String version,
TestScriptFactory testScriptFactory)
throws IOException,
ScriptException,
org.apache.maven.plugin.MojoExecutionException
- Throws:
IOException
ScriptException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2013. All Rights Reserved.