Class core.UnitTester
Defined in: UnitTester.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<inner> |
link(text, code)
|
<inner> |
report(r)
|
reporter(r)
|
|
results()
|
|
runTests(TestClass, callback, testNames)
Run the tests from TestClass.
|
Field Detail
resourcePrefix
Method Detail
{!number}
failedTestsCount()
- Returns:
- {!number}
<inner>
{!string}
link(text, code)
- Parameters:
- {!string} text
- {!string} code
- Returns:
- {!string}
<inner>
report(r)
- Parameters:
-
{!{description:string|suite:!Array.
|success:boolean|log:!Array.<{category:string|message:string}>|time:number}} r
reporter(r)
- Parameters:
- r
{!Object}
results()
- Returns:
- {!Object}
{undefined}
runTests(TestClass, callback, testNames)
Run the tests from TestClass.
If parameter testNames is supplied only the tests with the names
supplied in that array will be executed.
- Parameters:
- {!function(new:core.UnitTest|core.UnitTestRunner)} TestClass
- The constructor for the test class.
- {!function():undefined} callback
- {!Array.} testNames
- Returns:
- {undefined}