I am trying to run karate suite with multiple tags and features but then none of feature scenarios get executed. Below is the code:
class TestRunnerParallel {
@Test
void testParallel() throws IOException {
List<String> tags = new ArrayList<String>();
tags.add("@test1");
tags.add("@test2");
List<String> features = new ArrayList<String>();
features.add("testSuite1");
RunnerOptions options = RunnerOptions.fromAnnotationAndSystemProperties(features, tags, getClass());
Results results = Runner.parallel(options.getTags(),
options.getFeatures(),
options.getName(),
Collections.singletonList(new ReportportalHook()),
1,
null);
}
}
But when only one tag, like below code, it executes fine. Note: when I execute one tag per execution it works fine. I am unsure what the issue is ?
class TestRunnerParallel {
@Test
void testParallel() throws IOException {
List<String> tags = new ArrayList<String>();
tags.add("@test1");
RunnerOptions options = RunnerOptions.fromAnnotationAndSystemProperties(features, tags, getClass());
Results results = Runner.parallel(options.getTags(),
options.getFeatures(),
options.getName(),
Collections.singletonList(new ReportportalHook()),
1,
null);
}
}