Since Version 2.1, Wakanda has incorporated two JavaScript testing frameworks: mocha and chai to support unit testing. In addition, a new “Test” button is introduced in studio to enable automated testing. Wakanda developers can run predefined unit tests on the server hands-free and review detailed report exported in JSON format. The testing feature gives developer more options to find out intended and unintended behaviors or the code, detect changes that break existing code, the avoid potential mistakes in implementation. This tech note is aimed to provide a guide for 4D Mobile developers to take advantage of this new feature. It demonstrates how to use Wakanda unit testing with tables and methods exposed through 4D Mobile, and shows a list of test cases in typical conditions can inspire developers to write their own test cases in real uses cases.
This technical note has been revised and published on January 3rd, 2018.
Download Complete Tech Note: Tech Note Document