{"id":18581929,"url":"https://github.com/coder/gott","last_synced_at":"2025-08-02T01:12:10.903Z","repository":{"id":65978622,"uuid":"194937482","full_name":"coder/gott","owner":"coder","description":"go test timer","archived":false,"fork":false,"pushed_at":"2019-08-21T20:19:06.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-02-16T11:56:40.029Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-02T21:30:41.000Z","updated_at":"2024-08-02T23:06:35.000Z","dependencies_parsed_at":"2023-02-19T18:45:38.340Z","dependency_job_id":null,"html_url":"https://github.com/coder/gott","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fgott","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fgott/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fgott/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coder%2Fgott/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coder","download_url":"https://codeload.github.com/coder/gott/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239321400,"owners_count":19619697,"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":[],"created_at":"2024-11-07T00:08:23.957Z","updated_at":"2025-02-17T16:20:18.134Z","avatar_url":"https://github.com/coder.png","language":"Go","readme":"# Go Test Timer\n\n`gott` finds the most time-consuming tests in large suites.\n\n## Install\n\n`go install go.coder.com/gott`\n\n## Example\n\n```\ngo test -v | gott\n\n ✔    --- TestA/A        20ms\n ✔    --- --- TestA/B/BB 10ms\n ✔    --- TestA/B        20ms  10ms\n ✔    TestA              40ms  40ms\n ✖    --- TestB/BigFail  50ms\n ✖    TestB              10ms  50ms\n ✖    TOTAL              562ms\n```\n\n## Usage\n\n```\nUsage: gott [flags]\n\nParses go test verbose output and produces a list of tests sorted by how time consuming they are.\n\ngott flags:\n\t-c\tomit entries that take less than this much time\t(0s)\n\t-p\tpass through go test output\t(false)\n```\n\n## Parallel Children\n\n`go test` reports how long a test function takes to return. Test functions don't wait on their\nparallel children, so it can be difficult to answer the question _\"How long did this test and\nall of its children take?\"_.\n\nIn `gott`,\n\nThe first column of durations show how long the test functions took to return.\n\nThe second column shows long it took for all children to return.\n\n## Ranking Algorithm\n\n`gott` orders outputted tests by `max(testTook, childrenTook)`.\n\nThe longest test cases are at the bottom to reduce scrolling.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fgott","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoder%2Fgott","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoder%2Fgott/lists"}