forked from qunitjs/qunit
-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
21 lines (13 loc) · 1003 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This is the very first stab at getting qunit to work in Titanium.
The qunit.js file has been patched so most tests run. However, one test is failing even though there does not seem to be a problem.
The great thing is that this supports asynch tests, though I haven't done too much yet with it.
Install
=======
Place runner.js in your Resources directory.
Place qunit.js and titanium_adaptor.js in Resources/qunit
Place tests_to_run.js, test.js and same.js in the Resources/test directory. You will modify this tests_to_run.js to include your tests.
Add the app.js_snippet to your app.js (assuming you are using tabGroups, otherwise you will have to find another way).
For mocking, I've tested jsMockito support. Follow the instructions to install jsMockito (http://chrisleishman.github.com/jsmockito/) and uncomment the lines in titanium_adaptor.js (correcting the subdirectories, etc. on the way).
Disclaimer
==========
This is a work in progress. Please comment with any issues you are having.