Skip to content

Commit

Permalink
Nicer format for test names when reporting to CircleCI (#39859)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Feb 29, 2024
1 parent a1ced2f commit 01b1240
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build-system/tasks/runtime-test/runtime-test-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ class RuntimeTestConfig {
this.junitReporter = {
outputFile: `result-reports/${this.testType}.xml`,
useBrowserName: false,
nameFormatter(_, result) {
return result.description.trim();
},
classNameFormatter(_, result) {
return result.suite
.map((s) => s.trim())
.filter(Boolean)
.join(' » ');
},
};
}

Expand Down

0 comments on commit 01b1240

Please sign in to comment.