{"repo":"gotestyourself/gotestsum","free":true,"listed":false,"github":"https://github.com/gotestyourself/gotestsum","clone":"git clone https://github.com/gotestyourself/gotestsum.git","description":"'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.","language":"Go","stars":2707,"topics":["go","golang","go-test","junit-xml","ci","test","test-runner","testing"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"gotestsum gotestsum runs tests using go test -json , prints formatted test output, and a summary of the test run. It is designed to work well for both local development, and for automation like CI. gotestsum is used by some of the most popular Go projects. Install Download a binary from releases, or build from source with go install gotest.tools/gotestsum@latest . To run without installing use go run gotest.tools/gotestsum@latest . Documentation Core features - Change the test output format, from compact to verbose with color highlighting. - Print a summary of the test run after running all the tests. - Use any go test flag, run a script with --raw-command , or run a compiled test binary. CI and Automation - --junitfile - write a JUnit XML file for integration with CI systems. - --jsonfile - write all the test2json input received by gotestsum to a file. The file can be used as input to gotestsum tool slowest , or as a way to store the full verbose output of tests when less verbose output is printed to stdout using a compact --format . - --rerun-fails - run failed (possibly flaky) tests again to avoid re-running the entire suite. Re-running individual tests can save significant time when working with flaky test suites. Local Development - --watch - every time a .go file is saved run the tests for the package that changed. - --post-run-command - run a command after the tests, can be used for desktop notification of the test run. - gotestsum tool slowest - find the slowest tests","default_branch":null,"files":null,"tree":[],"storefront":"/r/gotestyourself","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gotestyourself/gotestsum/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}