Package de.saumya.mojo.runit
Class RUnitMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.AbstractGemMojo
de.saumya.mojo.tests.AbstractTestMojo
de.saumya.mojo.runit.RUnitMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test",
defaultPhase=TEST,
requiresDependencyResolution=TEST)
public class RUnitMojo
extends AbstractTestMojo
maven wrapper around the runit/testcase command.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Fileprivate TestResultManagerprivate final Stringarguments for the runit command.private final Stringrunit directory with glob to be used for the ruby unit command.protected booleanskip the ruby unit testsFields inherited from class de.saumya.mojo.tests.AbstractTestMojo
modes, skip, skipTests, summaryReport, testReportDirectory, versionsFields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzipFields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
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, rubySourceDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()protected TestScriptFactoryprotected JRubyRun.ResultrunIt(ScriptFactory factory, JRubyVersion.Mode mode, JRubyVersion version, TestScriptFactory scriptFactory) Methods inherited from class de.saumya.mojo.tests.AbstractTestMojo
executeWithGems, runItMethods inherited from class de.saumya.mojo.gem.AbstractGemMojo
addResource, executeJRuby, gemHome, getRemoteRepos, newScriptFactoryMethods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
runitDirectory
@Parameter(property="runit.dir", defaultValue="test/**/*_test.rb") private final String runitDirectoryrunit directory with glob to be used for the ruby unit command. -
runitArgs
arguments for the runit command. -
skipRunit
@Parameter(property="skipRunit", defaultValue="false") protected boolean skipRunitskip the ruby unit tests -
resultManager
-
outputfile
-
-
Constructor Details
-
RUnitMojo
public RUnitMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractGemMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
runIt
protected JRubyRun.Result runIt(ScriptFactory factory, JRubyVersion.Mode mode, JRubyVersion version, TestScriptFactory scriptFactory) throws IOException, ScriptException, org.apache.maven.plugin.MojoExecutionException - Specified by:
runItin classAbstractTestMojo- Throws:
IOExceptionScriptExceptionorg.apache.maven.plugin.MojoExecutionException
-
newTestScriptFactory
- Specified by:
newTestScriptFactoryin classAbstractTestMojo
-