forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(travis): reorganize protractor configs to group by spec instead…
… of by browser Use the multiConfiguration ability of Protractor to start tests on multiple browsers from the same travis cell. Group tests by type (jquery, jqlite, or docs tests) instead of by browser. Turn on tests for jQuery.
- Loading branch information
Showing
9 changed files
with
77 additions
and
74 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,12 @@ | ||
exports.config = { | ||
allScriptsTimeout: 11000, | ||
var config = require('./protractor-shared-conf').config; | ||
|
||
specs: [ | ||
'build/docs/ptore2e/**/*jqlite_test.js', | ||
'test/e2e/docsAppE2E.js' | ||
], | ||
config.specs = [ | ||
'build/docs/ptore2e/**/*.js', | ||
'test/e2e/docsAppE2E.js' | ||
]; | ||
|
||
capabilities: { | ||
'browserName': 'chrome', | ||
'name': 'Angular E2E: jqlite' | ||
}, | ||
|
||
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); | ||
}, | ||
|
||
jasmineNodeOpts: { | ||
defaultTimeoutInterval: 30000 | ||
} | ||
config.capabilities = { | ||
browserName: 'chrome', | ||
}; | ||
|
||
exports.config = config; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var config = require('./protractor-shared-conf').config; | ||
|
||
config.sauceUser = process.env.SAUCE_USERNAME; | ||
config.sauceKey = process.env.SAUCE_ACCESS_KEY; | ||
|
||
config.multiCapabilities = [{ | ||
'browserName': 'chrome', | ||
'name': 'Angular E2E', | ||
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, | ||
'build': process.env.TRAVIS_BUILD_NUMBER | ||
}, { | ||
'browserName': 'firefox', | ||
'name': 'Angular E2E', | ||
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, | ||
'build': process.env.TRAVIS_BUILD_NUMBER | ||
}, { | ||
browserName: 'safari', | ||
'platform': 'OS X 10.9', | ||
'version': '7', | ||
'name': 'Angular E2E', | ||
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER, | ||
'build': process.env.TRAVIS_BUILD_NUMBER | ||
}]; | ||
|
||
exports.config = config; |
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