Class goog.testing.TestCase.Result

code »

A class for representing test results. A bag of public properties.

Constructor

goog.testing.TestCase.Result ( testCase )
Parameters
testCase: goog.testing.TestCase
The test case that owns this result.
Show:

Instance Methods

Returns
A summary of the tests, including total number of tests that passed, failed, and the time taken.
Returns
Whether the test was successful.

Instance Properties

Whether the tests have completed.

Errors encountered while running the test.

Messages to show the user after running the test.

The number of files loaded to run this test.

Test results for each test that was run. The test name is always added as the key in the map, and the array of strings is an optional list of failure messages. If the array is empty, the test passed. Otherwise, the test failed.

Total number of tests that were actually run.

The amount of time the tests took to run.

Number of successful tests.

The test case that owns this result.

Whether this test case was suppressed by shouldRunTests() returning false.

Total number of tests that should have been run.