public class TestClass {
@Test
public void testMethod() {
ChromeDriver driver = new ChromeDriver(new ChromeOptions);
driver.navigate().to("http://www.google.com");
notTestMethod(driver);
}
@DisplayName("Not a test")
public void notTestMethod(WebDriver driver) {
driver.navigate().to("http://www.yahoo.com");
}
}
executing testMethod via junit will create 2 tests in the report, when it should create only one.
To reproduce, run this sample code:
executing testMethod via junit will create 2 tests in the report, when it should create only one.