This AI is still in early stages of development.
Test Events
Events defined by Test API...
Overview
The Test API provides the following events:
Event | Notes | API Version |
|---|---|---|
Test.onStart() | Triggered before the first test starts. | 1.2 |
Test.onFinish(...) | Triggered after all tests have finished, useful for triggering output of Test Results. The event has the following parameters:
Note: Tests of mode Test.APPEND( ) are not counted. | 1.2 |
Note: You can use Module Lifecycle Objects if you want to be notified before and after individual tests run.
Examples
Brief summary via console
Test.onFinish(numModules, numTests, numPassed, numFailed) {
var msg = "In "+numModules+" modules "
+ "there were "+numTests+" "
+ "of which "+numPassed+" passed "
+ "and "+numFailed+" failed."
console(msg);
}Detailed results via console
Test.onFinish() {
Test.outputTo("console");
}