testing.TestCase.Result Extends
A class for representing test results. A bag of public properties.

Inheritance

Constructor

goog.testing.TestCase.Result(testCase)

Parameters

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

Instance Methods

Public Protected Private
getSummary() string
No description.
Returns: string  A summary of the tests, including total number of tests that passed, failed, and the time taken.
code »
isSuccess() boolean
No description.
Returns: boolean  Whether the test was successful.
code »

Instance Properties

complete :
Whether the tests have completed.
Code »
errors :
Errors encountered while running the test.
Code »
messages :
Messages to show the user after running the test.
Code »
numFilesLoaded :
The number of files loaded to run this test.
Code »
resultsByName :
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.
Code »
runCount :
Total number of tests that were actually run.
Code »
runTime :
The amount of time the tests took to run.
Code »
successCount :
Number of successful tests.
Code »
testCase_ : goog.testing.TestCase
The test case that owns this result.
Code »
testSuppressed :
Whether this test case was suppressed by shouldRunTests() returning false.
Code »
totalCount :
Total number of tests that should have been run.
Code »

Package testing.TestCase

Package Reference