mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-09 09:00:34 +08:00
Use the new options from the reporter to add more logging to end to end tests, and increase the Jasmine test timeout from 30 seconds to 60 seconds to allow for legitimately long-lasting tests.
29 lines
703 B
JavaScript
29 lines
703 B
JavaScript
exports.config = {
|
|
allScriptsTimeout: 11000,
|
|
|
|
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);
|
|
|
|
// Store the name of the browser that's currently being used.
|
|
browser.getCapabilities().then(function(caps) {
|
|
browser.params.browser = caps.get('browserName');
|
|
});
|
|
},
|
|
|
|
jasmineNodeOpts: {
|
|
defaultTimeoutInterval: 60000,
|
|
showTiming: true
|
|
}
|
|
};
|