Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andreineculau/kunit.js
Testing JS just became simpler, safer & more fun
https://github.com/andreineculau/kunit.js
Last synced: 24 days ago
JSON representation
Testing JS just became simpler, safer & more fun
- Host: GitHub
- URL: https://github.com/andreineculau/kunit.js
- Owner: andreineculau
- Created: 2011-08-22T18:39:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-12T16:21:18.000Z (almost 13 years ago)
- Last Synced: 2024-04-13T07:33:20.306Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 98.6 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing JavaScript code just got [simpler, safer & more fun](http://klarna.com)
kunit.js is a simplified version of [FuncUnit](https://github.com/jupiterjs/funcunit),
which makes use of [jQuery](https://github.com/jquery/jquery),
[Syn](https://github.com/jupiterjs/syn) and [QUnit](https://github.com/jquery/qunit).# A quick tutorial
Tests are run by indicating the QUnit test file as a query to test.html.
Eg. in order to run the included [test.js](https://github.com/andreineculau/kunit.js/blob/master/test.js),
you would launch the browser to _test.html?test=test.js_.[test.js](https://github.com/andreineculau/kunit.js/blob/master/test.js) shows a few examples on how to use kunit.js
* K.open(_url_) opens a new window
* K.window would point to the window object of the opened window
* K(_selector_, _context_) returns a JQuery object, where context is by default K.window.document
* K.syn is a proxy for Syn, where context is by default K.window.document.body