Class SurefireTests

java.lang.Object
net.microfalx.talos.junit.SurefireTests

@Named("surefire") @Singleton public class SurefireTests extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the total number of tests with errors across all projects.
    int
    Returns the total number of failed tests across all projects.
    Collection<org.apache.maven.project.MavenProject>
    Returns all projects with tests.
    int
    Returns the total number of skipped tests across all projects.
    int
    Returns the total number of successful tests across all projects.
    Collection<org.apache.maven.plugins.surefire.report.ReportTestSuite>
    getTestSuites(org.apache.maven.project.MavenProject project)
    Returns the test suites for a project.
    int
    Returns the total number of tests across all projects.
    void
    load(org.apache.maven.execution.MavenSession session)
    Loads tests for a session.
    void
    Resets the state.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SurefireTests

      public SurefireTests()
  • Method Details

    • getTotalCount

      public int getTotalCount()
      Returns the total number of tests across all projects.
      Returns:
      a positive integer
    • getSuccessfulCount

      public int getSuccessfulCount()
      Returns the total number of successful tests across all projects.
      Returns:
      a positive integer
    • getFailedCount

      public int getFailedCount()
      Returns the total number of failed tests across all projects.
      Returns:
      a positive integer
    • getErrorCount

      public int getErrorCount()
      Returns the total number of tests with errors across all projects.
      Returns:
      a positive integer
    • getSkippedCount

      public int getSkippedCount()
      Returns the total number of skipped tests across all projects.
      Returns:
      a positive integer
    • getProjects

      public Collection<org.apache.maven.project.MavenProject> getProjects()
      Returns all projects with tests.
      Returns:
      a non-null instance
    • getTestSuites

      public Collection<org.apache.maven.plugins.surefire.report.ReportTestSuite> getTestSuites(org.apache.maven.project.MavenProject project)
      Returns the test suites for a project.
      Parameters:
      project - the project;
      Returns:
      the tests
    • load

      public void load(org.apache.maven.execution.MavenSession session)
      Loads tests for a session.
      Parameters:
      session - the session
    • reset

      public void reset()
      Resets the state.