forked from mikocml/jsartoolkit5
-
Notifications
You must be signed in to change notification settings - Fork 68
Testing with JSARToolKit with Qunit
Thorsten Bux edited this page Jan 13, 2018
·
3 revisions
JSARToolKit can be tested using the integrated Unit tests. These tests are written using the QUnit testing framework. All tests are located in ./tests. The tests consist of one index.html page that uses the tests.js which in turn contains all the tests.
The tests check the functionality of the ARCameraParam, ARController, ARController.getUserMedia, ARController.getUserMediaARController.
They can be run using npm run test and you can open the test results (test page) with npm run open-test.
Unfortunately, running the tests like this will cause most of the getUserMedia and getUserMediaARController tests to fail because the browser cannot access the camera stream.