Package com.github.searls.jasmine.mojo
Class TestMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.github.searls.jasmine.mojo.AbstractJasmineMojo
-
- com.github.searls.jasmine.mojo.TestMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="test", defaultPhase=TEST, requiresDependencyResolution=TEST) public class TestMojo extends AbstractJasmineMojoExecute specs using Selenium Web Driver. Uses PhantomJsDriver for head-less execution by default.
-
-
Field Summary
-
Fields inherited from class com.github.searls.jasmine.mojo.AbstractJasmineMojo
CUSTOM_RUNNER_CONFIGURATION_PARAM, CUSTOM_RUNNER_TEMPLATE_PARAM
-
-
Constructor Summary
Constructors Constructor Description TestMojo(org.apache.maven.project.MavenProject mavenProject, ResourceRetriever resourceRetriever, ReporterRetriever reporterRetriever, WebDriverFactory webDriverFactory, SpecRunnerExecutor specRunnerExecutor, JasmineResultLogger jasmineResultLogger, ResourceHandlerConfigurator resourceHandlerConfigurator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()voidrun(ServerConfiguration serverConfiguration, JasmineConfiguration configuration)-
Methods inherited from class com.github.searls.jasmine.mojo.AbstractJasmineMojo
getMavenProject
-
-
-
-
Constructor Detail
-
TestMojo
@Inject public TestMojo(org.apache.maven.project.MavenProject mavenProject, ResourceRetriever resourceRetriever, ReporterRetriever reporterRetriever, WebDriverFactory webDriverFactory, SpecRunnerExecutor specRunnerExecutor, JasmineResultLogger jasmineResultLogger, ResourceHandlerConfigurator resourceHandlerConfigurator)
-
-
Method Detail
-
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 classAbstractJasmineMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
run
public void run(ServerConfiguration serverConfiguration, JasmineConfiguration configuration) throws Exception
- Specified by:
runin classAbstractJasmineMojo- Throws:
Exception
-
-