{"id":21992576,"url":"https://github.com/roblaszczak/vgt","last_synced_at":"2025-05-16T14:06:50.759Z","repository":{"id":258268473,"uuid":"860885227","full_name":"roblaszczak/vgt","owner":"roblaszczak","description":"The missing tool for Visualising Go Tests","archived":false,"fork":false,"pushed_at":"2024-10-18T15:01:55.000Z","size":3808,"stargazers_count":319,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-10T07:44:17.060Z","etag":null,"topics":["go","testing"],"latest_commit_sha":null,"homepage":"https://threedots.tech/post/go-test-parallelism/","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/roblaszczak.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":"2024-09-21T12:32:03.000Z","updated_at":"2025-05-06T07:12:23.000Z","dependencies_parsed_at":"2025-01-10T11:26:44.933Z","dependency_job_id":null,"html_url":"https://github.com/roblaszczak/vgt","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":"0.19999999999999996","last_synced_commit":"766bbdec893fc7f84b2c56c8e5d66c130f5a7635"},"previous_names":["roblaszczak/vgt"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblaszczak%2Fvgt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblaszczak%2Fvgt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblaszczak%2Fvgt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblaszczak%2Fvgt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roblaszczak","download_url":"https://codeload.github.com/roblaszczak/vgt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"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","testing"],"created_at":"2024-11-29T20:14:10.760Z","updated_at":"2025-05-16T14:06:50.715Z","avatar_url":"https://github.com/roblaszczak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vgt - Visualise Go Tests\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"docs/logo.svg\" width=\"215\"\u003e\n\u003c/div\u003e\n\n---\n\n`vgt` is a tool for visualising Go test results in a browser.\n\nIt's helpful with understanding parallelism of tests and identifying slow tests.\nMore information can be found in our [blog post about optimising Go tests parallelism](https://threedots.tech/post/go-test-parallelism/).\n\n\u003ctable\u003e\n    \u003ctr style=\"border: none; text-align: center;\"\u003e\n        \u003ctd style=\"border: none\"\u003e\u003cimg src=\"docs/img3.png\" alt=\"Screenshot 3\" width=\"415\"\u003e\u003c/td\u003e\n        \u003ctd style=\"border: none\"\u003e\u003cimg src=\"docs/img4.png\" alt=\"Screenshot 4\" width=\"415\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr style=\"border: none; text-align: center;\"\u003e\n        \u003ctd style=\"border: none\"\u003e\u003cimg src=\"docs/img1.png\" alt=\"Screenshot 1\" width=\"415\"\u003e\u003c/td\u003e\n        \u003ctd style=\"border: none\"\u003e\u003cimg src=\"docs/img2.png\" alt=\"Screenshot 2\" width=\"415\"\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Installation\n\n```bash\ngo install github.com/roblaszczak/vgt@latest\n```\n\nYou can also run without installing by running `go run github.com/roblaszczak/vgt@latest`.\n\n## Usage\n\nFor visualising test results, run `go test` with the `-json` flag and pipe the output to `vgt`.\n\n```bash\ngo test -json ./... | vgt\n```\n\nor with `go run`:\n\n```bash\ngo test -json ./... | go run github.com/roblaszczak/vgt@latest\n```\n\n\u003e [!WARNING]  \n\u003e When you are piping go tests output to `vgt`, `vgt` will exit with 1 when tests failed.\n\nor just `vgt` with a custom flags after `--` to run tests and visualise them:\n\n```bash\n$ vgt -- ./... -count=1 -short\n10:26PM INF Running go test command=\"[go test -json ./... -count=1 -short]\"\n```\n\nAfter tests were executed, a browser window will open with the visualisation.\n\nIf you want to preserve the output, you can pipe test logs to file and later pass it to `vgt`:\n\n```bash\ngo test -json ./... \u003e test.json\ncat test.json | vgt\n```\n\n### Additional flags\n\n```bash\nUsage of vgt:\n  -debug\n    \tenable debug mode\n  -dont-pass-output\n    \tdon't print output received to stdin\n  -duration-cutoff string\n    \tthreshold for test duration cutoff, under which tests are not shown in the chart (default \"100µs\")\n  -from-file string\n    \tread input from file instead of stdin\n  -keep-running\n    \tkeep browser running after page was opened\n  -print-html\n    \tprint html to stdout instead of opening browser\n```\n\n## Development\n\nIf you have an idea for a feature or found a bug, feel free to open an issue or a pull request.\n\nBefore making a big change, it's a good idea to open an issue to discuss it first.\n\n### Running tests\n\nTests are not really sophisticated, and are based on checking changes in golden files and checking in browser if\nit looks good.\n\n### Updating golden files\n\nIf you made a change and want to update golden files, you can run:\n\n```bash\ngo test . -update-golden\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblaszczak%2Fvgt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froblaszczak%2Fvgt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblaszczak%2Fvgt/lists"}