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
Command line -Djruby.modes=1.9,2.0 |
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
Deprecated.
|
protected String |
versions
run tests with a several versions of jruby
Command line -Djruby.versions=... |
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzip
addProjectClasspath, 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, newScriptFactory
getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifact
protected File testReportDirectory
protected boolean skipTests
protected boolean skip
protected Boolean use18and19
protected String modes
protected String versions
protected File summaryReport
protected void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, IOException, ScriptException, GemException
executeWithGems
in class AbstractGemMojo
org.apache.maven.plugin.MojoExecutionException
IOException
ScriptException
GemException
protected void runIt(JRubyRun run, TestScriptFactory testScriptFactory) throws org.apache.maven.plugin.MojoExecutionException, IOException, ScriptException
org.apache.maven.plugin.MojoExecutionException
IOException
ScriptException
protected 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
IOException
ScriptException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2015. All rights reserved.