public class ScalaContinuousTestMojo extends ScalaContinuousCompileMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
ccTestGoals
A space-separated list of the goals to execute as part of running the tests.
|
protected org.apache.maven.shared.invoker.Invoker |
invoker |
protected File |
localRepositoryPath
The local repository for caching artifacts.
|
protected String |
test
Specify this parameter to run individual tests by file name, overriding the
includes/excludes
parameters. |
analysisCacheFile, mainOutputDir, mainSourceDir, once, testAnalysisCacheFile, testOutputDir, testSourceDir, useFsc, verboseALL, INCREMENTAL, MODIFIED_ONLY, recompileModeexcludes, includes, sendJavaToScalacaddJavacArgs, addScalacArgs, args, checkMultipleScalaVersions, compilerPlugins, dependencies, displayCmd, encoding, factory, failOnMultipleScalaVersions, forceUseArgFile, fork, javacArgs, javacGenerateDebugSymbols, jvmArgs, localRepo, mavenProjectBuilder, project, reactorProjects, remoteRepos, resolver, SCALA_COMPILER_ARTIFACTID, SCALA_LIBRARY_ARTIFACTID, scalaClassName, session, source, target, toolchainManager, useCanonicalPath| Constructor and Description |
|---|
ScalaContinuousTestMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
getMavenGoals() |
protected void |
postCompileActions()
Allows derived Mojos to do things after a compile has succesfully completed such as run test cases
|
doExecute, getAnalysisCacheFile, getClasspathElements, getOutputDir, getScalaCommand, getSourceDirectoriesclearCompileErrors, compile, defaultAnalysisCacheFile, defaultAnalysisDirectory, defaultTestAnalysisCacheFile, getAnalysisCacheMap, getFilesToCompile, hasCompileErrors, incrementalCompilefindSourceWithFilters, findSourceWithFilters, initFilters, normalizeaddCompilerPluginOptions, addCompilerToClasspath, addLibraryToClasspath, addToClasspath, addToClasspath, addToClasspath, addToClasspath, checkScalaVersion, execute, findScalaVersion, findVersionFromDependencies, findVersionFromPluginArtifacts, getAllDependencies, getArtifactJar, getArtifactJar, getCompilerDependencies, getCompilerJar, getCompilerPluginOptions, getDependencies, getEmptyScalaCommand, getJavacOptions, getLibraryJar, getPluginArtifactJar, getPluginArtifactJar, getScalaOptions, getScalaOrganization, isJavaSupportedByCompiler, resolveArtifactDependencies, resolveDependencyArtifactsprotected org.apache.maven.shared.invoker.Invoker invoker
protected File localRepositoryPath
${project.build.directory}/it-repo. Otherwise, your ordinary local repository will
be used, potentially soiling it with broken artifacts.protected String test
includes/excludes
parameters. Each pattern you specify here will be used to create an
include pattern formatted like **/${test}.java, so you can just type "-Dtest=MyTest"
to run a single test called "foo/MyTest.java". This parameter will override the TestNG suiteXmlFiles
parameter.protected String ccTestGoals
mvn -Dcctest.goals=scalatest:test scala:cctestTo run both ScalaTest and JUnit tests:
mvn -Dcctest.goals="surefire:test scalatest:test" scala:cctestIf you need to specify the goal every time you run
scala:cctest, you can
configure the setting in the pom.xml:
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<version>2.16.0</version>
<configuration>
<ccTestGoals>scalatest:test</ccTestGoals>
</configuration>
<!-- normal executions here -->
</plugin>
protected void postCompileActions()
throws Exception
ScalaContinuousCompileMojopostCompileActions in class ScalaContinuousCompileMojoExceptionCopyright © 2012–2015. All rights reserved.