Skip to content

Commit

Permalink
Import test results always in the same order (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk868 authored Jun 11, 2024
1 parent bdf8c95 commit 183ef48
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
scanner.setIncludes(new String[]{"*.xml"});
scanner.setBasedir(reportFile);
scanner.setCaseSensitive(false);
scanner.setFilenameComparator(String::compareTo);
scanner.scan();
reportFiles = scanner.getIncludedFiles();
for (int i = 0; i < reportFiles.length; i++) {
Expand All @@ -144,6 +145,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
scanner.setIncludes(new String[]{reportFile});
scanner.setBasedir(".");
scanner.setCaseSensitive(false);
scanner.setFilenameComparator(String::compareTo);
scanner.scan();
reportFiles = scanner.getIncludedFiles();
for (int i = 0; i < reportFiles.length; i++) {
Expand Down

0 comments on commit 183ef48

Please sign in to comment.