Package de.saumya.mojo.minitest
Class MinitestMojo
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.minitest.MinitestMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test",
defaultPhase=TEST,
requiresDependencyResolution=TEST)
public class MinitestMojo
extends AbstractTestMojo
maven wrapper around minitest.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringarguments for the minitest command.private final Stringminitest directory with glob to speficy the test files.private Fileprivate TestResultManagerprotected booleanskip the minitestsFields 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
-
minitestDirectory
@Parameter(property="minitest.dir", defaultValue="test/**/*_test.rb") private final String minitestDirectoryminitest directory with glob to speficy the test files. -
minitestArgs
arguments for the minitest command. -
skipMinitests
@Parameter(property="skipMinitests", defaultValue="false") protected boolean skipMinitestsskip the minitests -
resultManager
-
outputfile
-
-
Constructor Details
-
MinitestMojo
public MinitestMojo()
-
-
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
-