Skip to content

Commit

Permalink
Merge pull request #20 from turing85/bugfix/19-fix-junit-report-folder
Browse files Browse the repository at this point in the history
#19: Set the testng report folder from "test-output" to "target/cituss-reports".
  • Loading branch information
christophd authored Dec 13, 2024
2 parents 1bd6fdd + 4e8bc32 commit 1e8c39a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ private void addResultsEndpoints(Router router) {

List<String> result = Collections.emptyList();
if (junitReportsFolder.exists()) {
logger.info("REPORTS EXISTS");
result = Optional.ofNullable(junitReportsFolder.list())
.stream()
.flatMap(Stream::of)
Expand Down Expand Up @@ -335,7 +336,7 @@ private void addConfigEndpoints(Router router) {
*/
private String getJUnitReportsFolder() {
if (isPresent("org.testng.annotations.Test")) {
return "test-output" + File.separator + "junitreports";
return "target/citrus-reports" + File.separator + "junitreports";
} else if (isPresent("org.junit.Test")) {
JUnitReporter jUnitReporter = new JUnitReporter();
return jUnitReporter.getReportDirectory() +
Expand Down

0 comments on commit 1e8c39a

Please sign in to comment.