jstemmer / go-junit-report

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

Add Go 1.20 Test Support #167

Open andrewradamis-paay opened 11 months ago

andrewradamis-paay commented 11 months ago

Go 1.20 changed the line format for coverage statements from:

coverage: n% of statements

to:

   package/name    coverage: n% of statements

This change updates the regex to support both formats.

I've tested this change with both -parser gotest and -parser gojson.

andrewradamis-paay commented 10 months ago

@jstemmer Can you review/merge this PR?