This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 865
Testing exercises
majek edited this page Dec 5, 2011
·
14 revisions
Warning: As for Dec 2011 the test's haven't been kept to date and fail miserably
To test exercises, you need to also have the QUnit testing Framework in the directory khan-exercises/test/qunit. This is a separate download. Once you do that, you can navigate to these pages to see test results:
- khan-exercises/test has regression tests for exercises
- khan-exercises/utils/test has unit tests for utility functions
you should just be able to do a git submodule init; git submodule update from within the khan-exercises repo
user:~/khan-exercises/ $ git submodule init
Submodule 'test/qunit' (https://github.com/jquery/qunit.git) registered for path 'test/qunit'
user:~/khan-exercises/ $ git submodule update
Cloning into test/qunit...
remote: Counting objects: 1408, done.
remote: Compressing objects: 100% (907/907), done.
remote: Total 1408 (delta 636), reused 1253 (delta 495)
Receiving objects: 100% (1408/1408), 228.73 KiB | 215 KiB/s, done.
Resolving deltas: 100% (636/636), done.
Submodule path 'test/qunit': checked out 'bd6a75e29e97576f12bed0c6d8f949d7bafcd9d7'
If that doesn't work, an alternative is this:
- cd to the same parent directory that you downloaded khan-exercises into
- Use this command to obtain qunit
git clone http://github.com/jquery/qunit
- cd into khan-exercises/test and make a symbolic link to the qunit directory
cd khan-exercises/test
ln -s ../../qunit qunit