Closed ash-skelton closed 4 years ago
You are mixing both JUnit and TestNG in the same class. JUnit and TestNG are different frameworks, you should only have to use one.
I think you are talking about xml reports generated by Maven. These are not generated by neither JUnit nor TestNG. And you should probebly consult the TestNG and Maven documentation here.
Cucumber can generate reports in the JUnit format by using a plugin "junit:target/cucumber.xml". You may be interested in using this.
You are using a rather old version of Cucumber. Consider upgrading!
Describe the bug I have recently implemented TestNG to be able to run cucumber scenarios in parallel by extending AbstractTestNGCucumberTests in my JUnit runner. Runner file is initiated via maven command and I can see that TestNG is executing in parallel. The issue is that in the TestNG/JUnit .xml reports, the testcase name is now being overwritten with "runScenario" rather than the actual scenario name like it was before I implemented TestNG.
Runner
JUnit Report
How is it possible to use this AbstractTestNGCucumberTests class so that it still picks up the scenario name, rather than overriding it?