public class TextReportExtension
extends java.lang.Object
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
| Constructor and Description |
|---|
TextReportExtension()
Initialize default text report extension that log successful and failed tests.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
afterEach(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) |
TextReportExtension |
onFailedTest(boolean onFailedTest)
Initialize text report extension with specified failed tests log strategy.
|
TextReportExtension |
onSucceededTest(boolean onSucceededTest)
Initialize text report extension with specified successful tests log strategy.
|
public TextReportExtension()
public TextReportExtension onFailedTest(boolean onFailedTest)
onFailedTest - parameter that indicate if need to log failed testspublic TextReportExtension onSucceededTest(boolean onSucceededTest)
onSucceededTest - parameter that indicate if need to log successful testspublic void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallbackpublic void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
afterEach in interface org.junit.jupiter.api.extension.AfterEachCallbackpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback