#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# Test.TestSuite Class

Defined in: `test/js/TestSuite.js:3`
Module: test

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

- Index
- Methods
- Properties

## Item Index

### Methods

- add
- setUp
- tearDown

### Properties

- items
- name

## Methods

### `add`

(

- `testObject`

)
Void

Defined in `test/js/TestSuite.js:52`

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

Defined in `test/js/TestSuite.js:69`

Function to run before each test is executed.

#### Returns:

Void:

### `tearDown`

() Void

Defined in `test/js/TestSuite.js:77`

Function to run after each test is executed.

#### Returns:

Void:

## Properties

### `items`

Array private

Defined in `test/js/TestSuite.js:21`

Array of test suites and test cases.

### `name`

String

Defined in `test/js/TestSuite.js:14`

The name of the test suite.