Package com.github.wix_maven
Class SmokeMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.wix_maven.AbstractWixMojo
com.github.wix_maven.AbstractPackageable
com.github.wix_maven.SmokeMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="smoke",
requiresProject=true,
defaultPhase=TEST)
public class SmokeMojo
extends AbstractPackageable
Smoke to perform 'unit' testing of msi/msp Smoke runs ICE similar to light, this goal allows a
seperate execution from the linker step. Optionally translate into unit test report output
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileWhere to store the results as an xml report.protected booleanSkip running of smoke goal.protected booleanSet this to "true" to ignore a failure during testing.protected booleanRun smoke on installers created for all cultures.protected FileWhere to store the validation log file.Fields inherited from class com.github.wix_maven.AbstractPackageable
cabCacheDirectory, externalCabs, mergeLevel, ML_BASE, ML_DEFAULT, ML_REPACK, ML_TRANSFORM, narUnpackDirectory, outputDirectory, packLevel, PL_CACHED_CAB, PL_CULTURE_CAB, PL_DEFAULT, PL_MST, PL_PACKAGE, PL_TRANS_CAB, PL_WIXPDBFields inherited from class com.github.wix_maven.AbstractWixMojo
compilePerLocale, harvestInputDirectory, intDirectory, localeList, PACK_BUNDLE, PACK_INSTALL, PACK_LIB, PACK_MERGE, PACK_MSIX, PACK_PATCH, packaging, project, reactorProjects, relativeBase, remoteArtifactRepositories, remoteRepos, repoSession, repoSystem, skip, suppress, toolDirectory, toolDirectoryOverwrite, toolsPluginArtifactId, unpackDirectory, validate, verbose, warn, wixExtensions, wxsGeneratedDirectory, wxsInputDirectory, zipUnArchiverFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidmultiSmoke(File smokeTool) protected voidsmoke(org.codehaus.plexus.util.cli.Commandline cl) Methods inherited from class com.github.wix_maven.AbstractPackageable
alternateCulturespecs, baseCulturespec, defaultLocale, getExternalCabs, getOutput, getPackageOutputExtension, getPackaging, languagesMethods inherited from class com.github.wix_maven.AbstractWixMojo
addExtension, addToolsetGeneralOptions, addWixExtensions, cleanupFileBasedResources, culturespecs, findToolsArtifact, findToolsArtifacts, getArchIntDirectory, getCommandBuilder, getExtDependencySets, getJARDependencySets, getLocales, getNPANDAYDependencySets, getOutput, getOutputPath, getPlatforms, getPrimaryCulture, getRelatedArtifacts, getRelative, getRelativePath, getWixDependencySets, getWixVersion, resolveArtifact, resolveArtifact, setLocales, setPlatforms, unpackFileBasedResources, wixUnpackDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skipTests
@Parameter(property="wix.skipTests", defaultValue="false") protected boolean skipTestsSkip running of smoke goal. -
reportDirectory
@Parameter(property="wix.reportDirectory", defaultValue="${project.build.directory}/wix-reports") protected File reportDirectoryWhere to store the results as an xml report. TODO: gather ICE issues into XML report... -
validationLogFile
@Parameter(property="wix.validationLogFile", defaultValue="${project.build.directory}/wix-log/validation.txt") protected File validationLogFileWhere to store the validation log file. -
validateAllCultures
@Parameter(property="wix.validateAllCultures", defaultValue="false") protected boolean validateAllCulturesRun smoke on installers created for all cultures. When false only runs against the base culture. -
testFailureIgnore
@Parameter(property="wix.test.failure.ignore", defaultValue="false") protected boolean testFailureIgnoreSet this to "true" to ignore a failure during testing. Its use is NOT RECOMMENDED, but quite convenient on occasion.
-
-
Constructor Details
-
SmokeMojo
public SmokeMojo()
-
-
Method Details
-
multiSmoke
public void multiSmoke(File smokeTool) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
smoke
protected void smoke(org.codehaus.plexus.util.cli.Commandline cl) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-