Correct way to re-run the failed tests with Selenium-Cucumber in kotlin jvm
I am trying to re-run the failed functional tests for our application as I have seen these tests to be flaky.
Our setup is as follows
Platform / Stack - Kotlin 1.8.0 (JVM)
Webdriver - Selenium java:4.7.2
TestRunner - Cucumber Java8 (4.3.0) with Cucumber jUnit (4.3.0)
I have a TestSuite.kt which looks like below
import com.et.functionaltests.steps.WebDriverFactory
import cucumber.api.CucumberOptions
import cucumber.api.junit.Cucumber
import org.junit.AfterClass
import org.junit.runner.RunWith...