de.saumya.mojo.runit
Class AbstractTestMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by de.saumya.mojo.jruby.AbstractJRubyMojo
          extended by de.saumya.mojo.gem.AbstractGemMojo
              extended by de.saumya.mojo.runit.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 skipTests
          skip all tests
Command line -Dmaven.test.skip=...
protected  java.io.File summaryReport
          The name of the summary (xml-)report which can be used by TeamCity and Co.
protected  java.io.File testReportDirectory
           
 
Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemHome, gemPath, gemsConfig, gemsInstaller, includeOpenSSL, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzip
 
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
 
Constructor Summary
AbstractTestMojo()
           
 
Method Summary
protected  void executeWithGems()
           
protected  void runIt(JRubyRun run)
           
protected abstract  JRubyRun.Result runIt(ScriptFactory factory, JRubyRun.Mode mode, java.lang.String version)
           
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
executeJRuby, newScriptFactory
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, launchDirectory, newScriptFactory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, retrieveStdlibArtifact
 
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

testReportDirectory

protected java.io.File testReportDirectory

skipTests

protected boolean skipTests
skip all tests
Command line -Dmaven.test.skip=...


summaryReport

protected java.io.File summaryReport
The name of the summary (xml-)report which can be used by TeamCity and Co.

Constructor Detail

AbstractTestMojo

public AbstractTestMojo()
Method Detail

executeWithGems

protected void executeWithGems()
                        throws org.apache.maven.plugin.MojoExecutionException,
                               java.io.IOException,
                               ScriptException,
                               GemException
Specified by:
executeWithGems in class AbstractGemMojo
Throws:
org.apache.maven.plugin.MojoExecutionException
java.io.IOException
ScriptException
GemException

runIt

protected void runIt(JRubyRun run)
              throws org.apache.maven.plugin.MojoExecutionException,
                     java.io.IOException,
                     ScriptException
Throws:
org.apache.maven.plugin.MojoExecutionException
java.io.IOException
ScriptException

runIt

protected abstract JRubyRun.Result runIt(ScriptFactory factory,
                                         JRubyRun.Mode mode,
                                         java.lang.String version)
                                  throws java.io.IOException,
                                         ScriptException,
                                         org.apache.maven.plugin.MojoExecutionException
Throws:
java.io.IOException
ScriptException
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011. All Rights Reserved.