Skip to content

JavaScriptUnitTesting

felixKubicek edited this page Sep 17, 2014 · 9 revisions

Location

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

Execution

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 of test_tunner.html using the headless browser plugin mocha-phantomjs)
Clone this wiki locally