API Docs for: 3.5.0
Show:

Test.TestSuite Class

A test suite that can contain a collection of TestCase and TestSuite objects.

Constructor

Test.TestSuite

(
  • data
)

Parameters:

  • data String | | Object

    The name of the test suite or an object containing a name property as well as setUp and tearDown methods.

Item Index

Methods

Properties

Methods

add

(
  • testObject
)
Void

Adds a test suite or test case to the test suite.

Parameters:

  • testObject Test.TestSuite | | YUITest.TestCase

    The test suite or test case to add.

Returns:

Void:

setUp

() Void

Function to run before each test is executed.

Returns:

Void:

tearDown

() Void

Function to run after each test is executed.

Returns:

Void:

Properties

items

Array private

Array of test suites and test cases.

name

String

The name of the test suite.