{"id":22980361,"url":"https://github.com/tsovak/go-test-parser","last_synced_at":"2025-08-13T17:33:08.724Z","repository":{"id":47045798,"uuid":"285044601","full_name":"Tsovak/go-test-parser","owner":"Tsovak","description":"go-test-parser is a simple CLI tool for generating the UI report from go test output","archived":false,"fork":false,"pushed_at":"2023-02-25T06:53:56.000Z","size":2604,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T20:15:39.882Z","etag":null,"topics":["go","gotest","report"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tsovak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-04T17:00:04.000Z","updated_at":"2023-09-18T09:15:03.000Z","dependencies_parsed_at":"2024-06-19T19:07:02.863Z","dependency_job_id":"d6848672-9bc6-4c72-bf16-d37715064441","html_url":"https://github.com/Tsovak/go-test-parser","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tsovak%2Fgo-test-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tsovak%2Fgo-test-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tsovak%2Fgo-test-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tsovak%2Fgo-test-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tsovak","download_url":"https://codeload.github.com/Tsovak/go-test-parser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229773606,"owners_count":18122031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","gotest","report"],"created_at":"2024-12-15T01:38:57.254Z","updated_at":"2024-12-15T01:38:58.105Z","avatar_url":"https://github.com/Tsovak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Beautify the Golang test output\n\nLicense: [MIT License](./LICENSE)\n\n![tests](https://github.com/Tsovak/go-test-parser/workflows/tests/badge.svg)\n\n## Introduction\n\nThis is the CLI fot make go test output more readable. \nThe CLI aggregate all mixed test output and displays the tests with their output.\n\n### Requirements\n\n    1. Go 1.13 \n    2. Make\n    \n## Build\n\nRun the command in the project base dir \n\n    make build \n\n## Install \n```bash\n$ go get github.com/tsovak/go-test-parser/...\n$ go-test-parser -h\n$ go-runner help\n```\n\n    \n## Usage \n\n```bash\ngo-test-parser is a simple CLI tool for generating the UI report from go test output\n\nUsage:\n  ./go-test-parser \u003cgo test -json -v output\u003e [flags]\n\nExamples:\n./go-test-parser ./test.log -v\n go test -json -v ./... | go-test-parser -o ./report_directory\n\nFlags:\n  -h, --help               Help for application\n      --http int32         HTTP address to serve (default 8080)\n  -s, --includeSucceeded   Include the successful test results or not\n  -o, --output string      The report output directory (default \"./report\")\n  -v, --verbose            Print verbose output\n  -w, --web                Start only web serer for report displaying\n```\n\n1. Generate report to directory: `go-test-parser -o ./report_directory test.log`\n2. Generate report and display in the browser via url http://localhost/report: `go-test-parser  -w --http 80 test.log`\n\n------ \n\n```\ngo-runner is a simple tool to override the go application and beautify the report. go-runner accepts the `go` arguments and environment variables.\ngo-runner generate a report only with `--json` flag.\n\nUsage:\n    go-runner \u003ccommand\u003e [arguments]\n\nExample 1:\n➜  go-runner version\ngo version go1.14.3 darwin/amd64\n\nExample 2:\n➜  go-runner env\nGO111MODULE=\"\"\nGOARCH=\"amd64\"\nGOBIN=\"\"\n... \n\nExample 3: Here the example where tests were run and failed in the end. The go-runner exit code is the same as go test exit code.\n✗ ./bin/go-runner test -v ./cmd/go-runner/test/... -race -json -tags fake\n{\"Time\":\"2020-08-31T00:52:00.696202+03:00\",\"Action\":\"run\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeSucceed\"}\n{\"Time\":\"2020-08-31T00:52:00.696531+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeSucceed\",\"Output\":\"=== RUN   TestFakeSucceed\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.69659+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeSucceed\",\"Output\":\"    TestFakeSucceed: fake_test.go:10: I'm robot\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696608+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeSucceed\",\"Output\":\"--- PASS: TestFakeSucceed (0.00s)\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696615+03:00\",\"Action\":\"pass\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeSucceed\",\"Elapsed\":0}\n{\"Time\":\"2020-08-31T00:52:00.696653+03:00\",\"Action\":\"run\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeFail\"}\n{\"Time\":\"2020-08-31T00:52:00.696693+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeFail\",\"Output\":\"=== RUN   TestFakeFail\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696727+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeFail\",\"Output\":\"    TestFakeFail: fake_test.go:14: the fake fail test output\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696744+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeFail\",\"Output\":\"--- FAIL: TestFakeFail (0.00s)\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696749+03:00\",\"Action\":\"fail\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeFail\",\"Elapsed\":0}\n{\"Time\":\"2020-08-31T00:52:00.696766+03:00\",\"Action\":\"run\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeIgnore\"}\n{\"Time\":\"2020-08-31T00:52:00.696779+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeIgnore\",\"Output\":\"=== RUN   TestFakeIgnore\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696791+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeIgnore\",\"Output\":\"    TestFakeIgnore: fake_test.go:19: the fake test output\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696844+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeIgnore\",\"Output\":\"--- SKIP: TestFakeIgnore (0.00s)\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.696962+03:00\",\"Action\":\"skip\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Test\":\"TestFakeIgnore\",\"Elapsed\":0}\n{\"Time\":\"2020-08-31T00:52:00.69697+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Output\":\"FAIL\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.69816+03:00\",\"Action\":\"output\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Output\":\"FAIL\\tgithub.com/tsovak/go-test-parser/cmd/go-runner/test\\t0.074s\\n\"}\n{\"Time\":\"2020-08-31T00:52:00.698207+03:00\",\"Action\":\"fail\",\"Package\":\"github.com/tsovak/go-test-parser/cmd/go-runner/test\",\"Elapsed\":0.075}\nreport was generated in /Users/tsovak/go/src/github.com/tsovak/go-test-parser/.reports/report_20200831_005200\n```\n\n1. `go-runner \u003ccommand\u003e [arguments]`\n\n### Use in your CI workflows\n\nThe CLI is used on the Github Action workflows in this repository. \nSee \"Generate report\" action step for more information.\n\n\n###### Demo\n![Report Demo](demo/demo.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsovak%2Fgo-test-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsovak%2Fgo-test-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsovak%2Fgo-test-parser/lists"}