Split Sauce Labs JS unit tests into multiple parts for slow browsers
Sauce Labs has a timeout of 5 minutes (including emulator/browser startup time).
This commit is contained in:
parent
aab04c2ad2
commit
0a5461b8ba
|
@ -226,13 +226,17 @@ module.exports = function(grunt) {
|
||||||
options: {
|
options: {
|
||||||
username: 'openpgpjs',
|
username: 'openpgpjs',
|
||||||
key: getSauceKey,
|
key: getSauceKey,
|
||||||
urls: ['http://localhost:3000/test/unittests.html?saucelabs=true'],
|
urls: [
|
||||||
|
'http://localhost:3000/test/unittests.html?saucelabs=true&grep=' + encodeURIComponent('Sauce Labs Group 1'),
|
||||||
|
'http://localhost:3000/test/unittests.html?saucelabs=true&grep=' + encodeURIComponent('Sauce Labs Group 2'),
|
||||||
|
'http://localhost:3000/test/unittests.html?saucelabs=true&grep=' + encodeURIComponent('^(?!.*Sauce Labs Group [1-2])')
|
||||||
|
],
|
||||||
build: process.env.TRAVIS_BUILD_ID,
|
build: process.env.TRAVIS_BUILD_ID,
|
||||||
testname: 'Sauce Unit Test for openpgpjs',
|
testname: 'Sauce Unit Test for openpgpjs',
|
||||||
browsers: [browser_capabilities],
|
browsers: [browser_capabilities],
|
||||||
public: "public",
|
public: "public",
|
||||||
maxRetries: 3,
|
maxRetries: 3,
|
||||||
throttled: 2,
|
throttled: 3,
|
||||||
pollInterval: 10000,
|
pollInterval: 10000,
|
||||||
sauceConfig: {maxDuration: 1800, commandTimeout: 600, idleTimeout: 1000},
|
sauceConfig: {maxDuration: 1800, commandTimeout: 600, idleTimeout: 1000},
|
||||||
statusCheckAttempts: 200
|
statusCheckAttempts: 200
|
||||||
|
|
|
@ -3,8 +3,10 @@ describe('General', function () {
|
||||||
require('./armor.js');
|
require('./armor.js');
|
||||||
require('./packet.js');
|
require('./packet.js');
|
||||||
require('./keyring.js');
|
require('./keyring.js');
|
||||||
require('./signature.js');
|
describe('[Sauce Labs Group 1]', function() {
|
||||||
require('./key.js');
|
require('./signature.js');
|
||||||
|
require('./key.js');
|
||||||
|
});
|
||||||
require('./openpgp.js');
|
require('./openpgp.js');
|
||||||
require('./hkp.js');
|
require('./hkp.js');
|
||||||
require('./wkd.js');
|
require('./wkd.js');
|
||||||
|
|
|
@ -352,7 +352,7 @@ function withCompression(tests) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
describe('OpenPGP.js public api tests', function() {
|
describe('[Sauce Labs Group 2] OpenPGP.js public api tests', function() {
|
||||||
|
|
||||||
let rsaGenStub;
|
let rsaGenStub;
|
||||||
let rsaGenValue = openpgp.crypto.publicKey.rsa.generate(openpgp.util.getWebCryptoAll() ? 2048 : 512, "10001");
|
let rsaGenValue = openpgp.crypto.publicKey.rsa.generate(openpgp.util.getWebCryptoAll() ? 2048 : 512, "10001");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user