jstemmer / go-junit-report

Convert Go test output to JUnit XML
MIT License
763 stars 222 forks source link

parser/gotest: partial support json input #128

Closed forsaken628 closed 2 years ago

forsaken628 commented 2 years ago

fix #121

jstemmer commented 2 years ago

Hi, the v2 code is still a bit in flux while I rearrange and refactor things, so I'm not yet ready to accept PR's on that branch. Support for parsing go test -json is coming, though I went with a slightly different approach.

forsaken628 commented 2 years ago

Yes,go test json doesn't quite match the design of gtr.

KacperPerschke commented 2 years ago

[…] Support for parsing go test -json is coming, though I went with a slightly different approach.

Could you please show anything?

I conclude that -json contains all the information, that should be extracted from txt with regexes, and overall its parser should be much lighter.