May 2019
Beginner to intermediate
548 pages
12h 39m
English
When the project grows and new functionalities are added, it will be necessary to be able to quickly check whether each and every part still works as expected. For this purpose, the SAPUI5 libraries support unit tests with the use of the QUnit framework. To set up a simple unit testing module, first, it is necessary to create the test launcher site, unitTests.qunit.html. The file should be placed in the test/unit catalog:

A short snippet of the launcher file is shown as follows:
<!DOCTYPE html><html> <head> ... <script id="sap-ui-bootstrap" <!-- SAPUI5 core bootstrap --> ... > </script> <script> jQuery.sap.require("sap.ui.qunit.qunit-css"); ...Read now
Unlock full access