The goog.testing.TestCase.Result Class

goog.testing.TestCase.Result(testCase)

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

testCase {goog.testing.TestCase}
The test case that owns this result.

.errors {Array.<goog.testing.TestCase.Error>}

Errors encountered while running the test.

.getSummary()

returns {string}
A summary of the tests, including total number of tests that passed, failed, and the time taken.

.isStrict()

Determines whether the test result should report failure if no tests are run.

returns {boolean}
Whether this is strict.

.isSuccess()

returns {boolean}
Whether the test was successful.

.messages {Array.<string>}

Messages to show the user after running the test.

.numFilesLoaded {number}

The number of files loaded to run this test.

.runCount {number}

Total number of tests that were actually run.

.runTime {number}

The amount of time the tests took to run.

.successCount {number}

Number of successful tests.

.testSuppressed {boolean}

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

.totalCount {number}

Total number of tests that should have been run.