Posted by Anuraj on Tuesday, December 1, 2015
You can invoke it with phantomjs from command line and based test case results, exit code will change.
And here is the screenshot of the console, where Jasmine unit tests are running.
In Travis CI - phantomjs.exe pre-installed, so you don’t need to install it seperatly. And if unit tests are failing the exit code will be “1” and if every unit tests passed exit code is “0”.