Skip to content

Commit 6c27f48

Browse files
authored
Merge pull request kubernetes#121852 from pohly/e2e-framework-test-labels-in-junit
e2e: avoid redundant labels in JUnit file
2 parents a95a79c + 617f213 commit 6c27f48

File tree

1 file changed

+4
-0
lines changed
  • test/e2e/framework/internal/junit

1 file changed

+4
-0
lines changed

test/e2e/framework/internal/junit/junit.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ func WriteJUnitReport(report ginkgo.Report, filename string) error {
3636
// both, then tools like kettle and spyglass would concatenate
3737
// the two strings and thus show duplicated information.
3838
OmitFailureMessageAttr: true,
39+
40+
// All labels are also part of the spec texts in inline [] tags,
41+
// so we don't need to write them separately.
42+
OmitSpecLabels: true,
3943
}
4044

4145
return reporters.GenerateJUnitReportWithConfig(report, filename, config)

0 commit comments

Comments
 (0)