You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this problem occurs when i build code on Jenkins. I can not see additional classifications which are added from code. I can not see any problem on local build.
Local build:
Jenkins build:
Omega Release can not be added on Jenkins build. Is there any problem on Jenkins cucumber-reports-plugin?
Cucumber Report Version : 5.3.1
code for adding classification and generating report below:
public void testParallel() {
Results results = Runner.path(TESTS_DIR_PATH).tags(tagsList).parallel(THREAD_COUNT);
JSONObject version = new JSONObject(Runner.runFeature("classpath:test/omega/version.feature", null, true));
String releaseVersion = version.getJSONObject("response").get("data").toString();
generateReport(results.getReportDir(), releaseVersion);
assertEquals(0, results.getFailCount(), results.getErrorMessages());
}
public static void generateReport(String karateOutputPath, String version) {
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"), "OMEGA & TALISMAN");
config.addClassifications("Omega Release", version);
ReportBuilder reportBuilder = new ReportBuilder(jsonPaths, config);
reportBuilder.generateReports();
}
The text was updated successfully, but these errors were encountered:
durubayram
changed the title
Classification can not add on cucumber features report on Jenkins build
Classification can not be added on cucumber features report in Jenkins build
Oct 22, 2020
Hi, this problem occurs when i build code on Jenkins. I can not see additional classifications which are added from code. I can not see any problem on local build.
Local build:
Jenkins build:
Omega Release can not be added on Jenkins build. Is there any problem on Jenkins cucumber-reports-plugin?
Cucumber Report Version : 5.3.1
code for adding classification and generating report below:
The text was updated successfully, but these errors were encountered: