Package de.saumya.mojo.rspec
Class RSpecMojo
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.rspec.RSpecMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test",
defaultPhase=TEST,
requiresDependencyResolution=TEST)
public class RSpecMojo
extends AbstractTestMojo
executes the jruby command.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Fileprivate StringThe name of the RSpec report.private final Stringarguments for the rspec command.protected booleanskip rspecsprivate Fileprotected StringThe directory containing the RSpec source filesFields 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
-
rspecArgs
arguments for the rspec command. -
specSourceDirectory
The directory containing the RSpec source files -
skipSpecs
@Parameter(property="skipSpecs", defaultValue="false") protected boolean skipSpecsskip rspecs -
reportName
The name of the RSpec report. -
outputfile
-
specsDir
-
-
Constructor Details
-
RSpecMojo
public RSpecMojo()
-
-
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
-