diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2019-02-08 15:19:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-08 15:19:29 -0500 |
commit | f68215fa833ae8b367ed68de3c81b0691c09e71a (patch) | |
tree | 8de864080d98f2695ca0093f71735e22abada7d6 /vars | |
parent | 4fdc5b786172dc165e3da052c9ab120d601a80a8 (diff) | |
download | jscu_refactor-f68215fa833ae8b367ed68de3c81b0691c09e71a.tar.gz |
Post-process test report file to prepend build config name to test names (#31)
* Add build config name as prefix to test names in report.
* Add braces for better readability
Diffstat (limited to 'vars')
-rw-r--r-- | vars/utils.groovy | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vars/utils.groovy b/vars/utils.groovy index a159145..e1fa458 100644 --- a/vars/utils.groovy +++ b/vars/utils.groovy @@ -259,6 +259,11 @@ def processTestReport(config, index) { "skippedUnstableThresh: ${config.skippedUnstableThresh}\n" + "skippedFailureThresh: ${config.skippedFailureThresh}" println(thresh_summary) + + // Process the XML results file to include the build config name as a prefix + // on each test name to make it more obvious from where each result originates. + sh(script:"sed -i 's/ name=\"/ name=\"[${config.name}] /g' *.xml") + if (report_exists == 0) { step([$class: 'XUnitBuilder', thresholds: [ |