gotestyourself / gotestyourself/gotestsum
Support JUnit step property
- Dominant language
- Go
- Stars
- 2.7k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
Please support JUnit step property.
See: https://github.com/testmoapp/junitxml?tab=readme-ov-file#steps
Example
```xml
```
I want an option to make 't.Run' to be steps under each test cases.
### Expected Behavior
```go
func Test(t *testing.T) {
t.Run("A", func(t *testing.T) {}
t.Run("B", func(t *testing.T) {}
t.Run("C", func(t *testing.T) {
t.Run("D", func(t *testing.T) {}
}
}
```
generates
```xml
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No repository files, tests, or entry points are named. Start by tracing how gotestsum converts Go test results into JUnit XML, then inspect how nested t.Run results are represented; done means an option produces the requested step properties and preserves nested names such as C/D.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100