I've read the documentation (on the subject), but I still don't understand how to do so.
The documentation:
- implies that parallel execution is an optional feature ("Karate can run tests in parallel");
- implies that I need to write some java code to enable parallel execution, and seems to assume that I'm running karate as part of a java project (e.g. when it says "you refer to the package you want to execute");
- gives an example of java code you could write to do so, but the example seems to be particular to using JUnit5, which I'm not using.
My karate features and code are not part of a java project. I run karate independent of any other java (except for a class to override the default logging, as described here). This is why the list items 2 & 3 above don't help me. To further illustrate, here's is how I run my karate tests:
java -Dkarate.env=int -DserviceName=aca-ppa -Dkarate.options="--tags @int" -cp ../jars/karate-1.4.0.jar:. com.intuit.karate.Main *.feature
Do I need to create a .java file like the one shown for JUnit5, compile it and make sure the .class file is in the class path? If so, then:
- what would I do about the JUnit5 stuff? I'm not using JUnit5 at present. Do I need it for parallel execution? I rely on, and want the html report that karate produces. Would karate still produce the html report if I specify the JUnit5 stuff?
- how would I pass the properties that I need karate to run with? (e.g. the env and my own serviceName property)
Thanks!