Class TestRunnerComponent

All Implemented Interfaces:
Animation, Editable, StyleListener, Iterable<Component>

public class TestRunnerComponent extends Container

A UI component for running unit tests and displaying the results.

The sample code below demonstrates usage.

TestRunnerComponent runner = new TestRunnerComponent();
runner.add(new ResultParserTest());
runner.add(new ElementSelectorTest());
runner.showForm();
  • Constructor Details

    • TestRunnerComponent

      public TestRunnerComponent()
  • Method Details

    • add

      public TestRunnerComponent add(AbstractTest... tests)

      Adds tests to the test runner.

      Parameters
      • tests: The tests to add.
      Returns

      Self for chaining.

    • showForm

      public Form showForm()

      Shows a form with the testrunner embedded in it.

      Returns

      The form.

    • runTests

      public void runTests()
      Runs all of the tests in the test running.