jstemmer / go-junit-report

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

Accurate test timestamps by moving ProcessEvent #161

Closed cameron-dunn-sublime closed 1 year ago

cameron-dunn-sublime commented 1 year ago

https://github.com/jstemmer/go-junit-report/issues/147

By moving the ProcessEvent call up to parse we call it as soon as each event is read. This ensures that the timestampFunc is called approximately when the test is run. This ensures that the time of the whole test suite can be measured.

jstemmer commented 1 year ago

Looks good, thanks for contributing!