Class TextReportExtension

java.lang.Object
com.codeborne.selenide.junit5.TextReportExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension

@ParametersAreNonnullByDefault public class TextReportExtension extends Object implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
Since:
1.0.0
  • Constructor Details

    • TextReportExtension

      public TextReportExtension()
      Initialize default text report extension that log successful and failed tests.
  • Method Details

    • onFailedTest

      @Nonnull public TextReportExtension onFailedTest(boolean onFailedTest)
      Initialize text report extension with specified failed tests log strategy.
      Parameters:
      onFailedTest - parameter that indicate if need to log failed tests
      Returns:
      current extension instance
    • onSucceededTest

      @Nonnull public TextReportExtension onSucceededTest(boolean onSucceededTest)
      Initialize text report extension with specified successful tests log strategy.
      Parameters:
      onSucceededTest - parameter that indicate if need to log successful tests
      Returns:
      current extension instance
    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback