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, 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
getDefaultJRubyVersion, 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 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 © 2017. All rights reserved.