As a part of testing, i was using typescript language to develop the code which will be compatible for protractor, i was using BDD framework in which i had defined some cucumber options in my config.ts as following:
capabilities: {
specs: "../example.feature"
}
cucumberOpts: {
compiler: "ts:ts-node/register",
format: "rerun:./reports/rerun.txt",
require: "../../stepdefinations/*.ts",
strict: true
}
onComplete: () =>{
Reporter.createHTMLReport();
}
As mentioned in format, i was able to get the failed scenario line numbers in the rerun.txt which contains as following: example.feature:145:439
How to run this file before completing the test suite, how to rerun the failed scenarios for 3 times