Skip to content

Instantly share code, notes, and snippets.

@shanestillwell
Created December 19, 2012 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanestillwell/4338016 to your computer and use it in GitHub Desktop.
Save shanestillwell/4338016 to your computer and use it in GitHub Desktop.
Running Testacular from Jenkins CI using PhantomJS. You'll need to install PhantomJS and Testacular onto the CI server. Then you'll need to set up a New Job in Jenkins.
<target name="testacular-unit" description="Testacular AngularJS unit tests">
<echo message="Running the tests ..." />
<exec executable="testacular" output="test_out/output.txt" failonerror="true">
<arg value="start" />
<arg value="./config/testacular.conf.js" />
</exec>
<echo message="Tests done" />
</target>
PATH=$PATH:/usr/local/bin
PHANTOMJS_BIN=/usr/local/bin/phantomjs
basePath = '../';
files = [
JASMINE,
JASMINE_ADAPTER,
'public/lib/angular/angular.js',
'public/lib/angular/angular-*.js',
'public/lib/angular-ui/angular-*.js',
'test/lib/angular/angular-mocks.js',
'public/js/**/*.js',
'test/unit/**/*.js'
];
singleRun = true;
reporters = ['dots', 'junit'];
browsers = ['PhantomJS'];
junitReporter = {
outputFile: 'test_out/unit.xml',
suite: 'unit'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment