test: retry tests on failure
MODIFY
test/commands/base/everything.test.js
test/commands/base/everything.test.js
@@ -2,5 +2,5 @@ const run = require('../../run')
describe('base', () => {
run('base', 'everything')
- .it()
+ .retries(2).it()
})

MODIFY
test/commands/base/mocha.test.js
test/commands/base/mocha.test.js
@@ -2,5 +2,5 @@ const run = require('../../run')
describe('base', () => {
run('base', 'mocha')
- .it()
+ .retries(2).it()
})

MODIFY
test/commands/base/plain.test.js
test/commands/base/plain.test.js
@@ -2,5 +2,5 @@ const run = require('../../run')
describe('base', () => {
run('base', 'plain')
- .it()
+ .retries(2).it()
})

MODIFY
test/commands/base/typescript.test.js
test/commands/base/typescript.test.js
@@ -2,5 +2,5 @@ const run = require('../../run')
describe('base', () => {
run('base', 'typescript')
- .it()
+ .retries(2).it()
})

MODIFY
test/commands/multi/everything.test.js
test/commands/multi/everything.test.js
+const sh = require('shelljs')
const run = require('../../run')
describe('multi', () => {
run('multi', 'everything')
- .it()
+ .retries(2).it(() => {
+ sh.exec('node ./bin/run version')
+ sh.exec('node ./bin/run hello')
+ })
})

MODIFY
test/commands/multi/mocha.test.js
test/commands/multi/mocha.test.js
+const sh = require('shelljs')
const run = require('../../run')
describe('multi', () => {
run('multi', 'mocha')
- .it()
+ .retries(2).it(() => {
+ sh.exec('node ./bin/run version')
+ sh.exec('node ./bin/run hello')
+ })
})

MODIFY
test/commands/multi/plain.test.js
test/commands/multi/plain.test.js
const sh = require('shelljs')
-
const run = require('../../run')
describe('multi', () => {
run('multi', 'plain')
- .it(() => {
+ .retries(2).it(() => {
sh.exec('node ./bin/run version')
sh.exec('node ./bin/run hello')
})

MODIFY
test/commands/multi/typescript.test.js
test/commands/multi/typescript.test.js
+const sh = require('shelljs')
const run = require('../../run')
describe('multi', () => {
run('multi', 'typescript')
- .it()
+ .retries(2).it(() => {
+ sh.exec('node ./bin/run version')
+ sh.exec('node ./bin/run hello')
+ })
})

MODIFY
test/commands/plugin/everything.test.js
test/commands/plugin/everything.test.js
@@ -2,5 +2,6 @@ const run = require('../../run')
describe('plugin', () => {
run('plugin', 'everything')
+ .retries(2)
.it()
})

MODIFY
test/commands/plugin/mocha.test.js
test/commands/plugin/mocha.test.js
@@ -2,5 +2,6 @@ const run = require('../../run')
describe('plugin', () => {
run('plugin', 'mocha')
+ .retries(2)
.it()
})

MODIFY
test/commands/plugin/plain.test.js
test/commands/plugin/plain.test.js
@@ -2,5 +2,6 @@ const run = require('../../run')
describe('plugin', () => {
run('plugin', 'plain')
+ .retries(2)
.it()
})

MODIFY
test/commands/plugin/typescript.test.js
test/commands/plugin/typescript.test.js
@@ -2,5 +2,6 @@ const run = require('../../run')
describe('plugin', () => {
run('plugin', 'typescript')
+ .retries(2)
.it()
})

MODIFY
test/commands/single/everything.test.js
test/commands/single/everything.test.js
@@ -4,7 +4,7 @@ const run = require('../../run')
describe('single', () => {
run('single', 'everything')
- .it(() => {
+ .retries(2).it(() => {
sh.exec('node ./bin/run')
})
})

MODIFY
test/commands/single/mocha.test.js
test/commands/single/mocha.test.js
@@ -4,7 +4,7 @@ const run = require('../../run')
describe('single', () => {
run('single', 'mocha')
- .it(() => {
+ .retries(2).it(() => {
sh.exec('node ./bin/run')
})
})

MODIFY
test/commands/single/plain.test.js
test/commands/single/plain.test.js
@@ -4,7 +4,7 @@ const run = require('../../run')
describe('single', () => {
run('single', 'plain')
- .it(() => {
+ .retries(2).it(() => {
sh.exec('node ./bin/run')
})
})

MODIFY
test/commands/single/typescript.test.js
test/commands/single/typescript.test.js
@@ -4,7 +4,7 @@ const run = require('../../run')
describe('single', () => {
run('single', 'typescript')
- .it(() => {
+ .retries(2).it(() => {
sh.exec('node ./bin/run')
})
})

test: retry tests on failure