Created
December 19, 2012 16:28
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH=$PATH:/usr/local/bin | |
PHANTOMJS_BIN=/usr/local/bin/phantomjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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