'Generating single cucumber.json using Karate Framework
I am using parallel execution in my Karate Tests. I was trying to generate a single cucumber.json file inside target folder.
With the current set up, I have different json and xml files in the surefire-reports folder. Is there a way I could generate a single json file with the feature results ?
@CucumberOptions( format={"json:target/cucumber.json"})
public class TestParallel {
@Test
public void testParallel() {
String karateOutputPath = "target/surefire-reports";
KarateStats stats = CucumberRunner.parallel(getClass(), 5, karateOutputPath);
generateReport(karateOutputPath);
assertTrue("there are scenario failures", stats.getFailCount() == 0);
}
Any help or pointers will be appreciated. Thanks in advance !
Solution 1:[1]
No. But you never need to. All reporting solutions are able to handle multiple JSON files.
Is there any specific reason why you want a single JSON ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Peter Thomas |
