Package net.microfalx.talos.junit
Class SurefireTests
java.lang.Object
net.microfalx.talos.junit.SurefireTests
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the total number of tests with errors across all projects.intReturns the total number of failed tests across all projects.Collection<org.apache.maven.project.MavenProject> Returns all projects with tests.intReturns the total number of skipped tests across all projects.intReturns 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.intReturns the total number of tests across all projects.voidload(org.apache.maven.execution.MavenSession session) Loads tests for a session.voidreset()Resets the state.
-
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
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.
-