Merge pull request #121852 from pohly/e2e-framework-test-labels-in-junit

e2e: avoid redundant labels in JUnit file
This commit is contained in:
Kubernetes Prow Robot 2023-11-13 11:05:12 +01:00 committed by GitHub
commit 6c27f48387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,10 @@ func WriteJUnitReport(report ginkgo.Report, filename string) error {
// both, then tools like kettle and spyglass would concatenate
// the two strings and thus show duplicated information.
OmitFailureMessageAttr: true,
// All labels are also part of the spec texts in inline [] tags,
// so we don't need to write them separately.
OmitSpecLabels: true,
}
return reporters.GenerateJUnitReportWithConfig(report, filename, config)