Reputation: 2195
I'm using Karate with Junit 4.
I have one suite:
@RunWith(Suite.class)
@SuiteClasses({ ExampleRunner1.class, ExampleRunner2.class })
public class ExampleSuiteIT {}
and runners like this:
@RunWith(Karate.class)
@KarateOptions(tags = {"~@ignore"})
public class ExampleRunner1 {}
I want to generate a cucumber.json file to use some report tool like Cluecumber
Is it mandatory to use the parallel execution to generate Cucumber reports? I saw the implementation of DemoTestParallel and there is a lot of code there. I'm trying to avoid code in my suite class and also I don't need parallel execution.
Thanks in advance.
Upvotes: 1
Views: 447
Reputation: 58058
Is it mandatory to use the parallel execution to generate Cucumber reports
Using the Runner
class is mandatory to generate the Cucumber JSON files. If you don't want parallel execution, use a thread count of 1. Then it is up to you what you want to do with the JSON files.
Upvotes: 1