{"id":28476929,"url":"https://github.com/cjp2600/trep","last_synced_at":"2026-04-30T19:31:34.909Z","repository":{"id":186087947,"uuid":"674601213","full_name":"cjp2600/trep","owner":"cjp2600","description":"Trep is a simple CLI tool designed to make the output of golang test commands more readable and appealing to the user.","archived":false,"fork":false,"pushed_at":"2023-08-23T09:09:09.000Z","size":83,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T16:43:21.104Z","etag":null,"topics":["formatting","go","golang","report","terminal","testing","tui","unit-testing"],"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/cjp2600.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,"governance":null}},"created_at":"2023-08-04T10:39:08.000Z","updated_at":"2024-02-13T19:56:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd387fb4-3c89-4c85-b295-3fdfec3fe6be","html_url":"https://github.com/cjp2600/trep","commit_stats":null,"previous_names":["cjp2600/trep"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cjp2600/trep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjp2600%2Ftrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjp2600%2Ftrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjp2600%2Ftrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjp2600%2Ftrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjp2600","download_url":"https://codeload.github.com/cjp2600/trep/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjp2600%2Ftrep/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["formatting","go","golang","report","terminal","testing","tui","unit-testing"],"created_at":"2025-06-07T15:38:06.790Z","updated_at":"2026-04-30T19:31:34.904Z","avatar_url":"https://github.com/cjp2600.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TREP\nTrep is a simple CLI tool designed to make the output of golang test commands more readable and appealing to the user.\n\n![img.png](img.png)\n\n## Installation\n\n```shell\ngo install github.com/cjp2600/trep@latest\n```\n\n## `exec` Command\n\n### Description\n\nThe `exec` command is used to execute Go tests and format their output. It provides various flags to modify its behavior, such as filtering only failed tests, generating reports, and configuring the run mode.\n\n### Usage\n\n```shell\n./trep exec \"[golang test command]\"\n```\n\n#### Options\n\n- **`-f`, `--only-fail`**: If set, only failed tests will be displayed. Default is `false`.\n- **`-r`, `--report`**: If set, a report will be generated. Default is `false`.\n- **`-p`, `--report-path`**: Specifies the path where the report will be saved. Default is the current directory (`./`).\n- **`-m`, `--mode`**: Specifies the run mode. Available options are `'cli'`, `'ci'`. Default is `'cli'`.\n- **`-n`, `--report-name`**: Allows you to provide a custom name for the report. Example: `'report'`.\n\n### Examples\n\n1. **Executing Tests and Displaying Only Failures**\n\n   Execute the Go tests and display only the failed tests:\n\n```shell\n./trep exec \"go test ./... -v -cover\" --only-fail\n```\n\n2. **Executing Tests and Generating a Report**\n\n   Execute the Go tests and generate a report:\n\n```shell\n./trep exec \"go test ./... -v -cover\" --report\n```\n\n3. Specifying a Custom Report Path and Name\n\nExecute the Go tests and save the report in a custom directory with a custom name:\n\n```shell\n./trep exec \"go test ./... -v -cover\" --report --report-path ./reports --report-name report\n```\n\n4. **Running in CI Mode**\n\n   Execute the Go tests in CI mode:\n\n```shell\n./trep exec \"go test ./... -v -cover\" --mode ci\n```\n**Notes**\n\nMake sure that the specified report path exists, or an error may occur when trying to save the report.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjp2600%2Ftrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjp2600%2Ftrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjp2600%2Ftrep/lists"}