Created
November 8, 2019 22:56
-
-
Save neenjaw/71a7f0b058218b9ed62bec12bb2b99db to your computer and use it in GitHub Desktop.
Go test --json massaging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test --json | \ | |
sed -e 's/^/ /' \ | |
-e '$a\ ]\n]' \ | |
-e '1i[\n [' \ | |
-e '$n; s/$/,/' \ | |
-e '/\(pass\)\|\(fail\)/s/,$/\n ],\n [/' |
Author
neenjaw
commented
Nov 8, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment