add skip method, wait for tapreporter is finished

This commit is contained in:
2017-04-28 11:00:22 +02:00
parent 1c80c25b14
commit 12ac28ba44
6 changed files with 24 additions and 11 deletions

View File

@ -13,7 +13,7 @@ let test3 = tap.test('my third test -> test2 should take longer than test1 and e
expect((await test2).hrtMeasurement.milliSeconds > 1000).to.be.true
})
let test4 = tap.test('my 4th test -> should fail', async (tools) => {
let test4 = tap.skip.test('my 4th test -> should fail', async (tools) => {
tools.allowFailure()
expect(false).to.be.true
})
@ -23,7 +23,7 @@ let test5 = tap.test('my 5th test -> should pass in about 500ms', async (tools)
await tools.delayFor(500)
})
let test6 = tap.test('my 6th test -> should fail after 1000ms', async (tools) => {
let test6 = tap.skip.test('my 6th test -> should fail after 1000ms', async (tools) => {
tools.allowFailure()
tools.timeout(1000)
await tools.delayFor(2000)