All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.fortysix.maven.plugin.postaman.surfire.SurefireMailMojo Maven / Gradle / Ivy

//
// Generated stub from file:/Users/domi/tools/hudson/jobs/maven-postman-plugin/workspace/maven-postman-plugin/target/checkout/src/main/groovy/ch/fortysix/maven/plugin/postaman/surfire/SurefireMailMojo.groovy
//

package ch.fortysix.maven.plugin.postaman.surfire;

import java.lang.*;
import java.io.*;
import java.net.*;
import java.util.*;
import groovy.lang.*;
import groovy.util.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.io.File;
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.Set;
import java.util.List;
import org.apache.maven.doxia.siterenderer.Renderer;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.apache.maven.reporting.MavenReportException;
import ch.fortysix.maven.plugin.postaman.AbstractSenderMojo;
import ch.fortysix.maven.report.support.HtmlExtractor;
import ch.fortysix.maven.report.support.SinkReporter;

/**
 * Sends mails based on surefire (test) results.
 *
 * @author Domi
 * @goal surefire-mail
 * @phase site
 */
public class SurefireMailMojo
    extends AbstractSenderMojo
    implements groovy.lang.GroovyObject
{
    /**
     * The file pattern to be used to search for the surefire reports in the 'testReportsDirectory'-directory.
     *
     * @parameter default-value="TEST-.*.xml"
     */
    private java.lang.String reportFilePattern = null;
    public java.lang.String getReportFilePattern() {
        throw new InternalError("Stubbed method");
    }
    public void setReportFilePattern(java.lang.String value) {
        throw new InternalError("Stubbed method");
    }

    /**
     * This allows to redefine the condition to send the mail. e.g. one can define that there
     * must not be more then 20 skipped test cases (skipped > 20).
     * The default condition sends mails if there are any errors.
     * The following variables are available for usage in the condition:
     * 
    *
  • errors: number of all errors while running surefire
  • *
  • skipped: number of all skipped test cases
  • *
  • failures: number of all failures in the test cases
  • *
  • total: number of all test cases
  • *
* Other (usefull or not...) examples: *
    *
  • errors > 0 : sends a mail only if there are errors
  • *
  • skipped > failures : sends mails if there are more skipped then failed test cases
  • *
  • total == skipped : Sends mails if all tests are skipped
  • *
* To avoid problems with XML syntax, one can use a CDATA element. * The default only send a mail if there are errors or failures, but ignores the skipped ones. * * @parameter default-value="errors > 0 || failures > 0" */ private java.lang.String groovyCondition = null; public java.lang.String getGroovyCondition() { throw new InternalError("Stubbed method"); } public void setGroovyCondition(java.lang.String value) { throw new InternalError("Stubbed method"); } /** * Base directory where all surefire test reports are read from. * * @parameter expression="${project.build.directory}/surefire-reports" default-value="${project.build.directory}/surefire-reports" */ private File testReportsDirectory = null; public File getTestReportsDirectory() { throw new InternalError("Stubbed method"); } public void setTestReportsDirectory(File value) { throw new InternalError("Stubbed method"); } /** * The generated surefire html report (previously generated by 'maven-surefire-report-plugin'). * * @parameter default-value="${project.build.directory}/site/surefire-report.html" */ private File surefireReportHtml = null; public File getSurefireReportHtml() { throw new InternalError("Stubbed method"); } public void setSurefireReportHtml(File value) { throw new InternalError("Stubbed method"); } protected boolean prepareMojo() { throw new InternalError("Stubbed method"); } public void executeMojo() throws MojoExecutionException, MojoFailureException { throw new InternalError("Stubbed method"); } /** * create the mail to be send/reported. */ public Map createMail(List suiteReports) { throw new InternalError("Stubbed method"); } public groovy.lang.MetaClass getMetaClass() { throw new InternalError("Stubbed method"); } public void setMetaClass(groovy.lang.MetaClass metaClass) { throw new InternalError("Stubbed method"); } public java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args) { throw new InternalError("Stubbed method"); } public java.lang.Object getProperty(java.lang.String name) { throw new InternalError("Stubbed method"); } public void setProperty(java.lang.String name, java.lang.Object value) { throw new InternalError("Stubbed method"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy