add extendedDebugging to saucelabs tests

This commit is contained in:
Bart Butler 2018-02-05 15:03:01 -08:00
parent ac440b9ae6
commit 0b198b5b08

View File

@ -23,7 +23,7 @@ module.exports = function(grunt) {
'src/packet/**/*.js', 'src/packet/**/*.js',
'src/type/**/*.js', 'src/type/**/*.js',
'src/worker/**/*.js', 'src/worker/**/*.js',
'src/*.js', 'src/*.js'
]; // add more over time ... goal should be 100% coverage ]; // add more over time ... goal should be 100% coverage
var version = grunt.option('release'); var version = grunt.option('release');
@ -44,14 +44,14 @@ module.exports = function(grunt) {
browserify: { browserify: {
openpgp: { openpgp: {
files: { files: {
'dist/openpgp.js': [ './src/index.js' ] 'dist/openpgp.js': ['./src/index.js']
}, },
options: { options: {
browserifyOptions: { browserifyOptions: {
standalone: 'openpgp' standalone: 'openpgp'
}, },
// Don't bundle these packages with openpgp.js // Don't bundle these packages with openpgp.js
external: [ 'crypto', 'buffer', 'node-localstorage', 'node-fetch', 'asn1.js', 'jwk-to-pem' ], external: ['crypto', 'buffer', 'node-localstorage', 'node-fetch', 'asn1.js', 'jwk-to-pem'],
transform: [ transform: [
["babelify", { ["babelify", {
plugins: ["transform-async-to-generator", plugins: ["transform-async-to-generator",
@ -62,19 +62,19 @@ module.exports = function(grunt) {
presets: ["env"] presets: ["env"]
}] }]
], ],
plugin: [ 'browserify-derequire' ] plugin: ['browserify-derequire']
} }
}, },
openpgp_debug: { openpgp_debug: {
files: { files: {
'dist/openpgp_debug.js': [ './src/index.js' ] 'dist/openpgp_debug.js': ['./src/index.js']
}, },
options: { options: {
browserifyOptions: { browserifyOptions: {
debug: true, debug: true,
standalone: 'openpgp' standalone: 'openpgp'
}, },
external: [ 'crypto', 'buffer', 'node-localstorage', 'node-fetch', 'asn1.js', 'jwk-to-pem' ], external: ['crypto', 'buffer', 'node-localstorage', 'node-fetch', 'asn1.js', 'jwk-to-pem'],
transform: [ transform: [
["babelify", { ["babelify", {
plugins: ["transform-async-to-generator", plugins: ["transform-async-to-generator",
@ -85,20 +85,20 @@ module.exports = function(grunt) {
presets: ["env"] presets: ["env"]
}] }]
], ],
plugin: [ 'browserify-derequire' ] plugin: ['browserify-derequire']
} }
}, },
worker: { worker: {
files: { files: {
'dist/openpgp.worker.js': [ './src/worker/worker.js' ] 'dist/openpgp.worker.js': ['./src/worker/worker.js']
} }
}, },
unittests: { unittests: {
files: { files: {
'test/lib/unittests-bundle.js': [ './test/unittests.js' ] 'test/lib/unittests-bundle.js': ['./test/unittests.js']
}, },
options: { options: {
external: [ 'buffer', 'openpgp', '../../dist/openpgp', '../../../dist/openpgp' ] external: ['buffer', 'openpgp', '../../dist/openpgp', '../../../dist/openpgp']
} }
} }
}, },
@ -139,8 +139,8 @@ module.exports = function(grunt) {
uglify: { uglify: {
openpgp: { openpgp: {
files: { files: {
'dist/openpgp.min.js' : [ 'dist/openpgp.js' ], 'dist/openpgp.min.js' : ['dist/openpgp.js'],
'dist/openpgp.worker.min.js' : [ 'dist/openpgp.worker.js' ] 'dist/openpgp.worker.min.js' : ['dist/openpgp.worker.js']
} }
}, },
options: { options: {
@ -177,7 +177,7 @@ module.exports = function(grunt) {
src: 'test', src: 'test',
options: { options: {
root: '.', root: '.',
timeout: 240000, timeout: 240000
} }
} }
}, },
@ -187,7 +187,7 @@ module.exports = function(grunt) {
reporter: 'spec', reporter: 'spec',
timeout: 120000 timeout: 120000
}, },
src: [ 'test/unittests.js' ] src: ['test/unittests.js']
} }
}, },
copy: { copy: {
@ -234,9 +234,10 @@ module.exports = function(grunt) {
maxRetries: 3, maxRetries: 3,
throttled: 2, throttled: 2,
pollInterval: 4000, pollInterval: 4000,
statusCheckAttempts: 200 statusCheckAttempts: 200,
extendedDebugging : true
}
} }
},
}, },
watch: { watch: {
src: { src: {
@ -247,7 +248,7 @@ module.exports = function(grunt) {
files: ['test/*.js', 'test/crypto/**/*.js', 'test/general/**/*.js', 'test/worker/**/*.js'], files: ['test/*.js', 'test/crypto/**/*.js', 'test/general/**/*.js', 'test/worker/**/*.js'],
tasks: ['browserify:unittests'] tasks: ['browserify:unittests']
} }
}, }
}); });
// Load the plugin(s) // Load the plugin(s)