Class IssueExtensionExecutionListener

java.lang.Object
org.junitpioneer.jupiter.issue.IssueExtensionExecutionListener
All Implemented Interfaces:
org.junit.platform.launcher.TestExecutionListener

public class IssueExtensionExecutionListener extends Object implements org.junit.platform.launcher.TestExecutionListener
This listener collects the names and results of all tests, which are annotated with the @Issue annotation. After all tests are finished the results are provided to an IssueProcessor for further processing.
  • Field Details

    • REPORT_ENTRY_KEY

      public static final String REPORT_ENTRY_KEY
      See Also:
    • TIME_REPORT_KEY

      public static final String TIME_REPORT_KEY
      See Also:
    • active

      private final boolean active
      This listener will be active as soon as Pioneer is on the class/module path, regardless of whether @Issue is actually used. To prevent superfluous computation and memory use, we "deactivate" this listener if it is not needed. That's the case when we detect no IssueProcessor - presumably nobody uses this extension then.
    • testCases

      private final ConcurrentMap<String, IssueTestCaseBuilder> testCases
  • Constructor Details

    • IssueExtensionExecutionListener

      public IssueExtensionExecutionListener()
  • Method Details

    • reportingEntryPublished

      public void reportingEntryPublished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.reporting.ReportEntry entry)
      Specified by:
      reportingEntryPublished in interface org.junit.platform.launcher.TestExecutionListener
    • executionFinished

      public void executionFinished(org.junit.platform.launcher.TestIdentifier testIdentifier, org.junit.platform.engine.TestExecutionResult testExecutionResult)
      Specified by:
      executionFinished in interface org.junit.platform.launcher.TestExecutionListener
    • testPlanExecutionFinished

      public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
      Specified by:
      testPlanExecutionFinished in interface org.junit.platform.launcher.TestExecutionListener
    • createIssueTestSuites

      List<IssueTestSuite> createIssueTestSuites()
    • getIssueTestCases

      private List<IssueTestCase> getIssueTestCases(IssueTestCaseBuilder builder)
    • mergeIssueTestCases

      private List<IssueTestCase> mergeIssueTestCases(List<IssueTestCase> first, List<IssueTestCase> second)