Package io.testomat.junit.listener
Class JunitListener
- java.lang.Object
-
- io.testomat.junit.listener.JunitListener
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestWatcher,org.junit.platform.launcher.TestExecutionListener
public class JunitListener extends java.lang.Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.TestWatcher, org.junit.platform.launcher.TestExecutionListenerJUnit 5 extension for Testomat.io integration. Reports JUnit test execution results to Testomat.io platform. Provides global execution lifecycle hooks via TestExecutionListener.
-
-
Constructor Summary
Constructors Constructor Description JunitListener()JunitListener(MethodExportManager methodExportManager, io.testomat.core.runmanager.GlobalRunManager runManager, JunitTestReporter reporter, io.testomat.core.propertyconfig.interf.PropertyProvider provider, io.testomat.core.artifact.client.AwsService awsService)Constructor for testing
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterAll(org.junit.jupiter.api.extension.ExtensionContext context)voidafterEach(org.junit.jupiter.api.extension.ExtensionContext context)voidbeforeAll(org.junit.jupiter.api.extension.ExtensionContext context)voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)voidtestAborted(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable cause)voidtestDisabled(org.junit.jupiter.api.extension.ExtensionContext context, java.util.Optional<java.lang.String> reason)voidtestFailed(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable cause)voidtestPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)voidtestPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)voidtestSuccessful(org.junit.jupiter.api.extension.ExtensionContext context)
-
-
-
Constructor Detail
-
JunitListener
public JunitListener()
-
JunitListener
public JunitListener(MethodExportManager methodExportManager, io.testomat.core.runmanager.GlobalRunManager runManager, JunitTestReporter reporter, io.testomat.core.propertyconfig.interf.PropertyProvider provider, io.testomat.core.artifact.client.AwsService awsService)
Constructor for testing- Parameters:
methodExportManager- the method export managerrunManager- the global run managerreporter- the JUnit test reporterprovider- the property provider
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
beforeEach
public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback
-
testDisabled
public void testDisabled(org.junit.jupiter.api.extension.ExtensionContext context, java.util.Optional<java.lang.String> reason)- Specified by:
testDisabledin interfaceorg.junit.jupiter.api.extension.TestWatcher
-
testSuccessful
public void testSuccessful(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
testSuccessfulin interfaceorg.junit.jupiter.api.extension.TestWatcher
-
testAborted
public void testAborted(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable cause)- Specified by:
testAbortedin interfaceorg.junit.jupiter.api.extension.TestWatcher
-
testFailed
public void testFailed(org.junit.jupiter.api.extension.ExtensionContext context, java.lang.Throwable cause)- Specified by:
testFailedin interfaceorg.junit.jupiter.api.extension.TestWatcher
-
afterEach
public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback
-
testPlanExecutionStarted
public void testPlanExecutionStarted(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionStartedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
testPlanExecutionFinished
public void testPlanExecutionFinished(org.junit.platform.launcher.TestPlan testPlan)
- Specified by:
testPlanExecutionFinishedin interfaceorg.junit.platform.launcher.TestExecutionListener
-
-