forked from qunitjs/qunit
-
Notifications
You must be signed in to change notification settings - Fork 4
An easy-to-use JavaScript Unit Testing framework.
lukaso/qunit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
An easy-to-use JavaScript Unit Testing framework.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 100.0%