{"repo":"mfridman/tparse","free":true,"listed":false,"github":"https://github.com/mfridman/tparse","clone":"git clone https://github.com/mfridman/tparse.git","description":"CLI tool for summarizing go test output. Pipe friendly. CI/CD friendly.","language":"Go","stars":1262,"topics":["golang","test","testing-tools","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"tparse A command line tool for analyzing and summarizing go test output. [!TIP] Don't forget to run go test with the -json flag. Pass Fail :-------------------------: :-------------------------: By default, tparse will always return test failures and panics, if any, followed by a package-level summary table. To get additional info on passed tests run tparse with -pass flag. Tests are grouped by package and sorted by elapsed time in descending order (longest to shortest). But why?! for more info. Installation go install github.com/mfridman/tparse@latest Or download the latest pre-built binary here. Usage Once tparse is installed there are 2 ways to use it: 1. Run go test as normal, but add -json flag and pipe output to tparse . 2. Save the output of go test with -json flag into a file and call tparse with -file option. Tip: run tparse -h to get usage and options. But why?! go test is awesome, but verbose. Sometimes you just want readily available failures, grouped by package, printed with a dash of color. tparse attempts to do just that; return failed tests and panics, if any, followed by a single package-level summary. No more searching for the literal string: \"--- FAIL\". But, let's take it a bit further. With -all ( -pass and -skip combined) you can get additional info, such as skipped tests and elapsed time of each passed test. tparse comes with a -follow flag to print raw output. Yep, go test pipes JSON, it's parsed and the output is printed back out as if you ran go test ","default_branch":null,"files":null,"tree":[],"storefront":"/r/mfridman","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mfridman/tparse/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."}