December 01, 2015 by Anuraj
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”.
Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub