sudo npm install testacular -g # or install in local folder npm install testacular
You can install Testacular even without NPM, just clone the git repo, build and create symlinks (you will need Jake build tool):
git clone git://github.com/vojtajina/slim-jim.git cd testacular jake build sudo ln -s $PWD/bin/testacular /usr/local/bin/testacular sudo ln -s $PWD/bin/testacular-run /usr/local/bin/testacular
What is this good for ?
Mostly for testing you code in multiple browsers (desktop, mobile, tablets):
- executing tests on continuous integration server
- executing tests during development
Testacular does not provide any testing framework, so you can use anything you like. It's main goal is to be stable and highly extensible.
Why am I doing this ?
- anything on console will leak whole iframe window
- it clears console before run (but works only in FF), Chrome/Safari does not allow, so do this: console.clear = clear;