Karate 空手道0.9.5:Can';无法在并行执行中获取命令行选项

Karate 空手道0.9.5:Can';无法在并行执行中获取命令行选项,karate,Karate,我正在尝试将我的项目更新到上一个空手道版本0.9.5。除了并行执行之外,所有的工作都很好。它没有考虑我使用命令行“-Dkarate.options”运行的标记 这是我的TestParallel java类: public class QaaTestParallel { @Test public void testParallel() { Results results = Runner.path("classpath:e2e").parallel(2); generateRep

我正在尝试将我的项目更新到上一个空手道版本0.9.5。除了并行执行之外,所有的工作都很好。它没有考虑我使用命令行“-Dkarate.options”运行的标记

这是我的TestParallel java类:

public class QaaTestParallel {

@Test
public void testParallel() {
    Results results = Runner.path("classpath:e2e").parallel(2);
    generateReport(results.getReportDir());
    assertTrue(results.getErrorMessages(), results.getFailCount() == 0);
}

public static void generateReport(String karateOutputPath) {
    Collection<File> jsonFiles = FileUtils.listFiles(new File(karateOutputPath), new String[] {"json"}, true);
    List<String> jsonPaths = new ArrayList(jsonFiles.size());
    jsonFiles.forEach(file -> jsonPaths.add(file.getAbsolutePath()));
    Configuration config = new Configuration(new File("target"), "e2e Karate");
    config.setNotFailingStatuses(Collections.singleton(Status.SKIPPED));
    config.setSortingMethod(SortingMethod.ALPHABETICAL);
    ReportBuilder reportBuilder = new ReportBuilder(jsonPaths, config);
    reportBuilder.generateReports();        
}
但它运行我所有的测试

我尝试了不同的选择,但我没有开始工作。谁能帮我一把吗


非常感谢。

是的,我们错过了这个,这是一个错误。我已经在
develope
分支中修复了这个问题。如果您可以在本地构建和测试此功能,将对我们有很大帮助,它很简单:


现在,使用旧的注释方式作为解决方法,或者创建一个新的运行程序,其中标记组合是“硬编码的”。

谢谢Peter!看来你的机器运转得很好。
mvn clean test -Dkarate.options="--tags @smoke" -Dtest=QaaTestParallel