jstemmer / go-junit-report

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

support go-acc output.(in go-acc output coverage data format is changed) #103

Closed mrhjkim closed 1 year ago

mrhjkim commented 4 years ago

when using go-acc for accurate coverage report, it generate coverage related report differently without(% of statements ........) =>original example coverage: 10% of statements ok package1/foo 0.400s coverage: 10.0% of statements =>go-acc output coverage: 10 ok package1/foo 0.400s coverage: 10.0

I changed regular expression to treat "% of statements" as optional

you can test go-acc with following commands go get github.com/ory/go-acc go-acc -o coverage.out ./... -- -v | go-junit-report

jstemmer commented 1 year ago

Thanks for the PR. The recently released go-junit-report v2.0.0 appears to handle the output generated by go-acc from a quick test I did. If this is not the case, feel free to open a new issue. I don't intend to maintain the old v1 branch, so won't be merging this PR.