2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-23 20:40:40 +03:00

Fix failing SauceLabs tests by updating configuration

- Remove code coverage from SauceLabs CI, as it causes tests to hang.
- Update Safari browser tests to handle Safari 9-11 with proper OS
settings
This commit is contained in:
Emily Morehouse
2018-08-10 12:34:53 -06:00
parent 527381198e
commit c0b40650d1
+28 -11
View File
@@ -56,7 +56,21 @@ module.exports = function(config) {
// customLaunchers.SL_Safari7 = createCustomLauncher('safari', 7); // customLaunchers.SL_Safari7 = createCustomLauncher('safari', 7);
// customLaunchers.SL_Safari8 = createCustomLauncher('safari', 8); // customLaunchers.SL_Safari8 = createCustomLauncher('safari', 8);
customLaunchers.SL_Safari9 = createCustomLauncher('safari', 9); customLaunchers.SL_Safari9 = createCustomLauncher(
"safari",
9.0,
"OS X 10.11"
);
customLaunchers.SL_Safari10 = createCustomLauncher(
"safari",
"10.1",
"macOS 10.12"
);
customLaunchers.SL_Safari11 = createCustomLauncher(
"safari",
"11.1",
"macOS 10.13"
);
} }
// Opera // Opera
@@ -138,7 +152,9 @@ module.exports = function(config) {
// test results reporter to use // test results reporter to use
// possible values: 'dots', 'progress' // possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter // available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['dots', 'coverage', 'saucelabs'], // Disable code coverage, as it's breaking CI:
// reporters: ['dots', 'coverage', 'saucelabs'],
reporters: ['dots', 'saucelabs'],
// web server port // web server port
@@ -178,15 +194,16 @@ module.exports = function(config) {
webpack: { webpack: {
cache: true, cache: true,
devtool: 'inline-source-map', devtool: 'inline-source-map',
module: { // Disable code coverage, as it's breaking CI
postLoaders: [ // module: {
{ // postLoaders: [
test: /\.js$/, // {
exclude: /(node_modules|test)/, // test: /\.js$/,
loader: 'istanbul-instrumenter' // exclude: /(node_modules|test)/,
} // loader: 'istanbul-instrumenter'
] // }
}, // ]
// },
externals: [ externals: [
{ {
'./adapters/http': 'var undefined' './adapters/http': 'var undefined'