The karate summary report and individual feature file reports has it steps mixed with the feature file steps called from the config file.
I am using karate Version 1.1.0 with Junit5 and Parallel Runner.
Project has only 2 feature files
one.feature - called from Runner
auth.feature - called from config file using karate.callSingle.
Runner
@Test public void tParallel() { Results results = Runner.path("classpath:features/**one.feature**") .outputCucumberJson(true) .parallel(1);
}
karate-config.js
function fn(){ var env = 'qa'; var config = {}; if( env == 'qa'){ config.url = "www.google.com"; var values = karate.callSingle('classpath:utilsfeatures/**auth.feature**'); } return config;
}
Report : auth.feature steps are mixed with one.feature in the report which makes the steps count incorrect. Please let me know if I have done any incorrect config here.