Yeti is the YUI Easy Testing Interface.
Here you go:
[reid@benson ~/working/yui/yui3/src]
$ yeti --browsers firefox,safari attribute/tests/attribute.html json/tests/json.html history/tests/functional/history-base.html
✔ history-base on Firefox
15 passed
0 failed
✔ history-base on Safari
15 passed
0 failed
✔ Y.JSON (JavaScript implementation) on Firefox
68 passed
0 failed
✔ Y.JSON (JavaScript implementation) on Safari
68 passed
0 failed
✔ Attribute Unit Tests on Firefox
106 passed
0 failed
✔ Attribute Unit Tests on Safari
106 passed
0 failed
378 tests passed! (4847ms)
Yeti is a command-line tool for launching JavaScript unit tests in a browser and reporting the results without leaving your terminal. It's very similar to jspec in this regard, except yeti is designed to work with existing unmodified YUI-based tests.
Yeti is very limited:
- Requires Mac OS X.
- Assumes you're testing the local copy of the yui3 project.
In the future, Yeti will probably meet your needs better. Right now, it's pretty handy for YUI developers. :)
This is experimental software. Use at your own risk.
You should only do this on Mac OS X. Yeti won't work on other platforms (yet).
If you have npm installed, this will be easy.
$ npm install yeti
If you want to run off the latest code, clone this project and then run make.
$ git clone git://github.com/reid/yeti.git && cd yeti && make
This will install homebrew, node and npm for you if you don't have them installed already.