Class TreeOnFailureExtension

java.lang.Object
com.vaadin.testbench.unit.TreeOnFailureExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.Extension

public class TreeOnFailureExtension extends Object implements org.junit.jupiter.api.extension.AfterTestExecutionCallback
JUnit5 extension that will collect and output the component tree for the failing test UI.

This can help with identifying a problem that has happened in the test where a component is missing or has faulty data.

  • Constructor Details

    • TreeOnFailureExtension

      public TreeOnFailureExtension()
  • Method Details

    • afterTestExecution

      public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
      Specified by:
      afterTestExecution in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback