Posted by Anuraj on Tuesday, December 1, 2015 Reading time :1 minute
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”.
What do you think? I would like to hear your thoughts, suggestions, and questions in the comments section below.