aboutsummaryrefslogtreecommitdiffstats
path: root/protractor-jenkins-conf.js
diff options
context:
space:
mode:
authorJulie2014-01-30 18:49:58 -0800
committerIgor Minar2014-02-05 15:39:59 -0800
commit0e85ca9ddb5f259908400463764fd6141977b341 (patch)
tree88f0a17d6e1830a75c4c80451e7a84e559c95b2f /protractor-jenkins-conf.js
parente7face4728d3aed6dc089966d489d0c93b65913d (diff)
downloadangular.js-0e85ca9ddb5f259908400463764fd6141977b341.tar.bz2
chore(testing): run end to end tests on firefox and safari as well as chrome
Update the Travis and Jenkins configs to run protractor tests on Safari and Firefox as well, and make the Travis tests run output XML and turn off color. Fix tests which were failing in Firefox due to clear() not working as expected. Fix tests which were failing in Safari due to SafariDriver not understanding the minus key, and disable tests which SafariDriver has no support for.
Diffstat (limited to 'protractor-jenkins-conf.js')
-rw-r--r--protractor-jenkins-conf.js36
1 files changed, 36 insertions, 0 deletions
diff --git a/protractor-jenkins-conf.js b/protractor-jenkins-conf.js
new file mode 100644
index 00000000..a2491474
--- /dev/null
+++ b/protractor-jenkins-conf.js
@@ -0,0 +1,36 @@
+exports.config = {
+ allScriptsTimeout: 11000,
+
+ specs: [
+ 'build/docs/ptore2e/**/*.js',
+ 'test/e2e/docsAppE2E.js'
+ ],
+
+ capabilities: {
+ 'browserName': 'chrome'
+ },
+
+ baseUrl: 'http://localhost:8000/build/docs/',
+
+ framework: 'jasmine',
+
+ onPrepare: function() {
+ // Disable animations so e2e tests run more quickly
+ var disableNgAnimate = function() {
+ angular.module('disableNgAnimate', []).run(function($animate) {
+ $animate.enabled(false);
+ });
+ };
+
+ browser.addMockModule('disableNgAnimate', disableNgAnimate);
+
+ require('jasmine-reporters');
+ jasmine.getEnv().addReporter(
+ new jasmine.JUnitXmlReporter('test_out/e2e-' + this.capabilities.browserName + '-', true, true));
+ },
+
+ jasmineNodeOpts: {
+ defaultTimeoutInterval: 30000,
+ showColors: false
+ }
+};