You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.
I am using "github.com/tebeka/go2xunit/lib" to build junit xml output for a custom go tool.
I am wondering if its possible to build nested test output e.g. as in xunit-viewer/complete_multi_suites.xml
e.g
<!-- nested suites -->
<testsuitename="parent">
<testcasename="parent test"></testcase>
<testsuitename="child one">
<testcasename="child one test"></testcase>
</testsuite>
<testsuitename="child two">
<testcasename="child two test"></testcase>
<testsuitename="child of child two">
<testcasename="child of child two test"></testcase>
</testsuite>
</testsuite>
</testsuite>
But the results have 3 level nested hierarchy of data (not shown in the sample above for simplification) and distinctly different categories. I would like to use the nested structure of xunit testsuite to produce a better nested output than the plain single level output. But not sure if its possible using "go2xunit/lib"
For this to be possible I guess the Suite type should have a pointer to itself ?
I see that the Test type has an unexported field isParentTest - I was able to trace out how this field is used vaguely - but not sure if this would be helpful here esp since its not exported.
The text was updated successfully, but these errors were encountered:
I guess it's possible and will require some code changes. Sadly I'm super busy right now and don't have time to do these changes. I'll probably have some free time mid-June.
I'd love to get a patch if you're interested, can mentor to some degree.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using "github.com/tebeka/go2xunit/lib" to build junit xml output for a custom go tool.
I am wondering if its possible to build nested test output e.g. as in xunit-viewer/complete_multi_suites.xml
e.g
The basic usage of the lib in my tool is
But the
results
have 3 level nested hierarchy of data (not shown in the sample above for simplification) and distinctly different categories. I would like to use the nested structure of xunittestsuite
to produce a better nested output than the plain single level output. But not sure if its possible using "go2xunit/lib"For this to be possible I guess the
Suite
type should have a pointer to itself ?I see that the
Test
type has an unexported fieldisParentTest
- I was able to trace out how this field is used vaguely - but not sure if this would be helpful here esp since its not exported.The text was updated successfully, but these errors were encountered: