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.runit.AbstractTestMojo
de.saumya.mojo.rspec.RSpecMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class RSpecMojo
- extends AbstractTestMojo
executes the jruby command.
|
Field Summary |
protected java.io.File |
basedir
The project base directory |
protected java.util.List<java.lang.String> |
classpathElements
The classpath elements of the project being tested. |
protected java.io.File |
outputDirectory
The directory where the RSpec report will be written to |
protected java.lang.String |
reportName
The name of the RSpec report (optional, defaults to "rspec-report.html") |
protected boolean |
skipSpecs
|
protected java.lang.String |
specSourceDirectory
The directory containing the RSpec source files |
protected java.util.Properties |
systemProperties
List of system properties to set for the tests. |
| Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo |
binDirectory, gemHome, gemPath, gemsConfig, gemsInstaller, includeOpenSSL, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzip |
| Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo |
args, classRealm, DEFAULT_JRUBY_VERSION, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, jrubyVersion, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectory |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
basedir
protected java.io.File basedir
- The project base directory
classpathElements
protected java.util.List<java.lang.String> classpathElements
- The classpath elements of the project being tested.
skipSpecs
protected boolean skipSpecs
specSourceDirectory
protected java.lang.String specSourceDirectory
- The directory containing the RSpec source files
outputDirectory
protected java.io.File outputDirectory
- The directory where the RSpec report will be written to
reportName
protected java.lang.String reportName
- The name of the RSpec report (optional, defaults to "rspec-report.html")
systemProperties
protected java.util.Properties systemProperties
- List of system properties to set for the tests.
RSpecMojo
public RSpecMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Specified by:
execute in interface org.apache.maven.plugin.Mojo- Overrides:
execute in class AbstractJRubyMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
executeWithGems
public void executeWithGems()
throws org.apache.maven.plugin.MojoExecutionException,
ScriptException,
java.io.IOException,
GemException
- Overrides:
executeWithGems in class AbstractTestMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
ScriptException
java.io.IOException
GemException
runIt
protected JRubyRun.Result runIt(ScriptFactory factory,
JRubyRun.Mode mode,
java.lang.String version)
throws java.io.IOException,
ScriptException,
org.apache.maven.plugin.MojoExecutionException
- Specified by:
runIt in class AbstractTestMojo
- Throws:
java.io.IOException
ScriptException
org.apache.maven.plugin.MojoExecutionException
Copyright © 2011. All Rights Reserved.