{"id":19854801,"url":"https://github.com/jy8752/gotestsum-demo","last_synced_at":"2026-05-25T16:33:55.907Z","repository":{"id":255205403,"uuid":"848858003","full_name":"JY8752/gotestsum-demo","owner":"JY8752","description":"gotestsumとoctconvを使ったGoのCIにおけるテストレポートの作成デモ","archived":false,"fork":false,"pushed_at":"2024-08-31T13:40:05.000Z","size":666,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T10:14:29.097Z","etag":null,"topics":["ci","coverage","go","golang","gotestsum","octconv","test"],"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/JY8752.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-28T14:32:14.000Z","updated_at":"2024-08-31T13:40:08.000Z","dependencies_parsed_at":"2024-08-28T16:10:25.365Z","dependency_job_id":"cab1c627-53e8-4924-94ff-c0cd9fd1e3a2","html_url":"https://github.com/JY8752/gotestsum-demo","commit_stats":null,"previous_names":["jy8752/gotestsum-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JY8752/gotestsum-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fgotestsum-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fgotestsum-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fgotestsum-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fgotestsum-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JY8752","download_url":"https://codeload.github.com/JY8752/gotestsum-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JY8752%2Fgotestsum-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33484110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","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":["ci","coverage","go","golang","gotestsum","octconv","test"],"created_at":"2024-11-12T14:10:34.496Z","updated_at":"2026-05-25T16:33:55.839Z","avatar_url":"https://github.com/JY8752.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotestsum-dmeo\n\n![coverage](docs/coverage.svg) ![coverage](docs/ratio.svg) ![coverage](docs/time.svg)\n\n[gotestsum](https://github.com/gotestyourself/gotestsum?tab=readme-ov-file)のデモ。\n\n## install\n\n```\ngo install gotest.tools/gotestsum@latest\n\ngotestsum --version\n\u003e gotestsum version dev\n```\n\n## test\n\n```\n% gotestsum --format testdox         \ngotestsum-demo/calculate:\n ✓ Add (0.00s)\n ✓ Add 1+1 (0.00s)\n ✓ Add 1+2 (0.00s)\n ✓ Add 1-1 (0.00s)\n ✓ Add 2+1 (0.00s)\n\ngotestsum-demo/hello:\n ✓ Hello (0.00s)\n ✓ Hello 2 (0.00s)\n ✓ Hello hello, go!! (0.00s)\n ✓ Hello hello, gotestsum!! (0.00s)\n ✓ Hello hello, world!! (0.00s)\n```\n\n### alias\n\n```\nalias gotest=\"gotestsum --format testdox\"\nalias gotestv=\"gotestsum --format standard-verbose\"\n```\n\n```\n% gotest -- -count=1 ./...\ngotestsum-demo/calculate:\n ✓ Add (0.00s)\n ✓ Add 1+1 (0.00s)\n ✓ Add 1+2 (0.00s)\n ✓ Add 1-1 (0.00s)\n ✓ Add 2+1 (0.00s)\n\ngotestsum-demo/hello:\n ✓ Hello (0.00s)\n ✓ Hello 2 (0.00s)\n ✓ Hello hello, go!! (0.00s)\n ✓ Hello hello, gotestsum!! (0.00s)\n ✓ Hello hello, world!! (0.00s)\n```\n\n## output\n\n```\n% gotestsum --jsonfile test-output.log\n```\n\n## notify\n\nMacの場合は[terminal-notifier](https://github.com/julienXX/terminal-notifier)をインストールする\n\n```\nbrew install terminal-notifier\n```\n\n通知のexampleコマンドをインストールする。\n\n```\ngo install gotest.tools/gotestsum/contrib/notify\n```\n\n以下のテストを実行すると完了後に通知が飛ぶ。\n\n```\n% gotestsum --post-run-command notify \n```\n\n## coverage\n\n[octocov](https://github.com/k1LoW/octocov)を使用してPRのコメントにカバレッジを記載する。カバレッジレポートは以下のようにしてgotestsumを使用しても出力できる。\n\n```\ngotestsum --junitfile report.xml --format testdox --  -cover -coverprofile=coverage.out ./...\n```\n\n## CI\n\n```yaml\n      - name: Run tests and generate JUnit report, test coverage\n        run: \"${{ env.GOTESTSUM_BIN }}/gotestsum --junitfile report.xml --format testdox --  -cover -coverprofile=coverage.out ./...\"\n\n      - name: Upload test report and coverage\n        uses: actions/upload-artifact@v4\n        with:\n          name: junit-test-report-and-coverage\n          path: |\n            report.xml\n            coverage.out\n\n      - name: Test Report Summary\n        if: success() || failure()\n        uses: dorny/test-reporter@v1\n        with:\n          name: Tests\n          path: \"*.xml\"\n          reporter: java-junit\n\n      - uses: k1LoW/octocov-action@v1\n\n```\n\n## Sample\n\n\u003cimg src=\"./examples/gotestsum-format-testdox.gif\"/\u003e\n\n### Coverage\n\n\u003cimg src=\"./docs/coverage.png\" /\u003e\n\n### Report\n\n\u003cimg src=\"./docs/report.png\" /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjy8752%2Fgotestsum-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjy8752%2Fgotestsum-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjy8752%2Fgotestsum-demo/lists"}