I am using "wdio" with "jasmine" test framework and trying to reRun a single test spec following https://webdriver.io/docs/retry.html but retry is not happening. I am running following code using wdio sync runner like this - ./node_modules/wdio wdio.conf It's executing the test only once.
describe("test suite", ()=>{
it("test spec",()=>{
console.log('inside test')
fail('testing retry')
},3)
})
I expect test should execute 1+3 times.but it executes only once. Retry is not happening. Am I missing something obvious here ?
I believe that link is incorrect about what the third parameter to Jasmine's
it()
function means.According the official docs, that number is the
timeout
, allowing you to specify how long the test is allowed to run before failing:https://jasmine.github.io/api/3.5/global.html#it