Skip to content

junit report granularity #1523

Answered by onsi
ajaggapa asked this question in Q&A
Mar 4, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

hey @ajaggapa the junit report format is quite limited and there is not a formal junit spec that desribes how to add additional metadata.

I recommend generating Ginkgo's json output using --json-report and using that instead of or alongisde the junit output. Each spec in the JSON file includes a SpecEvents entry that looks like this (this is from one of Ginkgo's integration tests):

[
          {
            "SpecEventType": "Node",
            "CodeLocation": {
              "FileName": "/Users/onsi/code/ginkgo/integration/integration_suite_test.go",
              "LineNumber": 49
            },
            "TimelineLocation": {
              "Order": 7,
              "Time": "2025-03-05T…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ajaggapa
Comment options

Answer selected by ajaggapa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants