This project is read-only.

Test API

Test and Debug API makes it possible to quickly generate tests in the code without affecting functionality. In fact, you can safely leave your cases in the final code.

Test API works only when Debugger is enabled. By default, the Debugger is enabled. You should disable it before final deployment.


DebuggerOptions.enabled = true|false


When in the debug mode, a maroon colored box will appear in the bottom which will show the test results. Failed in red while passed in green. Also, the results from the framework tests will be shown which will help you debug your applications.

You can create a test case like this:


test(<test expression>, "result text");



If you want to only see the results of failed tests, use:


DebuggerOptions.errorsonly = true


Last edited Dec 27, 2011 at 7:55 PM by mihsathe, version 3


No comments yet.