A Qt application to run Jasmine from command line
Make sure you have Qt Development environment
After cloning repository, type
cd src && qmake && make ./qasmine /where/jasmine/SpecRunner.html --verbose
You can check exit code to get number of errors, so you can write some other scripts (like git hooks) with such an example
./qasmine /where/jasmine/SpecRunner.html > /dev/null ; echo $?
Those, who want to run qasmine in an environment which doesnt have X, they can use xvfb-run
xvfb-run ./qasmine /where/jasmine/SpecRunner.html
- 255 : File not found or cannot be loaded
- 0 : Success
-
0 : number of errors of specs