gotestsum
gotestsum is a testing framework for Go.
Enabling XML Output
Since go test
does not support XML output directly, you can use gotestsum to convert the native output to JUnit XML. First install it with
Then run your tests with
Test Suite Naming
gotestsum produces JUnit XML with the name and classname fields set by the function name and classnames being tested. For example, this function in the module example/hello
produces XML that looks like this:
Last updated