public abstract class AbstractTestMojo extends AbstractGemMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
modes
run tests with list of ruby modes 1.8, 1.9, 2.0, 2.2
|
protected boolean |
skip
skip all tests
|
protected boolean |
skipTests
skip all tests
|
protected File |
summaryReport
The name of the summary (xml-)report which can be used by TeamCity and Co.
|
protected File |
testReportDirectory |
protected String |
versions
run tests with a several versions of jruby
|
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzipaddProjectClasspath, args, classRealm, DEFAULT_JRUBY_VERSION, eclipseRefresh, eclipseWatches, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory| Constructor and Description |
|---|
AbstractTestMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeWithGems() |
protected abstract TestScriptFactory |
newTestScriptFactory() |
protected void |
runIt(JRubyRun run,
TestScriptFactory testScriptFactory) |
protected abstract JRubyRun.Result |
runIt(ScriptFactory factory,
JRubyVersion.Mode mode,
JRubyVersion version,
TestScriptFactory testScriptFactory) |
addResource, execute, executeJRuby, gemHome, getRemoteRepos, newScriptFactorygetDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifact@Parameter(defaultValue="${project.build.directory}/surefire-reports")
protected File testReportDirectory
@Parameter(property="skipTests",
defaultValue="false")
protected boolean skipTests
@Parameter(property="maven.test.skip",
defaultValue="false")
protected boolean skip
@Parameter(property="jruby.modes") protected String modes
@Parameter(property="jruby.versions") protected String versions
@Parameter protected File summaryReport
protected void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
IOException,
ScriptException,
GemException
executeWithGems in class AbstractGemMojoorg.apache.maven.plugin.MojoExecutionExceptionIOExceptionScriptExceptionGemExceptionprotected void runIt(JRubyRun run, TestScriptFactory testScriptFactory) throws org.apache.maven.plugin.MojoExecutionException, IOException, ScriptException
org.apache.maven.plugin.MojoExecutionExceptionIOExceptionScriptExceptionprotected abstract TestScriptFactory newTestScriptFactory()
protected abstract JRubyRun.Result runIt(ScriptFactory factory, JRubyVersion.Mode mode, JRubyVersion version, TestScriptFactory testScriptFactory) throws IOException, ScriptException, org.apache.maven.plugin.MojoExecutionException
IOExceptionScriptExceptionorg.apache.maven.plugin.MojoExecutionExceptionCopyright © 2015. All Rights Reserved.