-
Notifications
You must be signed in to change notification settings - Fork 9
JavaScriptUnitTesting
felixKubicek edited this page Sep 17, 2014
·
9 revisions
All resources related to testing the JavaScript client-side code can be found in FuzzEd/tests/js-tests/
.
The previously mentioned directory contains the following subdirectories:
-
src
- contains the actual unit tests, as well as an html file, called (test_tunner.html
) used for initialization of the testing environment, as well as execution of the unit tests -
lib
- contains libraries related to testing
The Unit tests can be executed in the following two ways:
- Open
test_tunner.html
in a browser - Execute
scons run.js_tests
on the command line (execution oftest_tunner.html
using the headless browser pluginmocha-phantomjs
)