There are 2 possibilities in order to run unit tests with testacular in Cloud9 IDE:
Capture the browser manually on the local machine #
http://<projectName>.<cloud9User>.c9.io/ in your browser.
Run testacular unit tests with PhantomJS in cloud9 IDE #
Install PhantomJS #
PhantomJS must be installed with
npm install phantomjs.
Configure Testacular #
testacular.conf.js file (tried it out for the AngularJS foodme app) must include the following entries:
browsers = ['PhantomJS'];
hostname = process.env.IP;
port = process.env.PORT;
runnerPort = 0;