{"id":26452936,"url":"https://github.com/kettanaito/test-analytics-vitest","last_synced_at":"2026-05-01T12:32:24.691Z","repository":{"id":267149084,"uuid":"899001200","full_name":"kettanaito/test-analytics-vitest","owner":"kettanaito","description":"Example project of using Test Analytics from Codecov with Vitest Browser Mode.","archived":false,"fork":false,"pushed_at":"2024-12-05T13:03:05.000Z","size":322,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T18:48:38.765Z","etag":null,"topics":["analytics","coverage","example","flaky","sentry","test","vitest"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/kettanaito.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-12-05T12:44:12.000Z","updated_at":"2024-12-05T13:03:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"5b4f199c-601a-4b8c-b326-2673c0396328","html_url":"https://github.com/kettanaito/test-analytics-vitest","commit_stats":null,"previous_names":["kettanaito/test-analytics-vitest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kettanaito/test-analytics-vitest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettanaito%2Ftest-analytics-vitest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettanaito%2Ftest-analytics-vitest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettanaito%2Ftest-analytics-vitest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettanaito%2Ftest-analytics-vitest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kettanaito","download_url":"https://codeload.github.com/kettanaito/test-analytics-vitest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kettanaito%2Ftest-analytics-vitest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497812,"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":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["analytics","coverage","example","flaky","sentry","test","vitest"],"created_at":"2025-03-18T18:39:52.723Z","updated_at":"2026-05-01T12:32:24.682Z","avatar_url":"https://github.com/kettanaito.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Analytics in Vitest\n\nExample project of using [Test Analytics from Codecov](https://docs.codecov.com/docs/test-analytics) with [Vitest Browser Mode](https://vitest.dev/guide/browser/).\n\n## Getting started\n\n### 1. Configure Vitest\n\nIn `vitest.config.ts`, make sure to add `juint` to the list of test `reporters` and provide the `outputFile` option to emit the report to the file system:\n\n```js\n// vitest.config.ts\nimport { defineConfig } from 'vitest/config'\n\nexport default defineConfig({\n  test: {\n    // ...other options\n    reporters: ['default', 'junit'],\n    outputFile: './test-report.junit.xml',\n  },\n})\n```\n\n\u003e See full [`vitest.config.ts`](./vitest.config.ts) for reference.\n\n### 2. Install Codecov GitHub app\n\nClick [here](https://github.com/apps/codecov/installations/select_target) to install the Codecov GitHub app in your project.\n\n### 3. Upload test report\n\nCreate a GitHub Actions workflow that will continuously run your tests and upload the test report to Codecov. Here's an example workflow:\n\n```yml\n# .github/workflows/ci.yml\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      # ...other steps\n\n      - name: Upload test results\n        if: ${{ !cancelled() }}\n        uses: codecov/test-results-action@v1\n        with:\n          token: ${{ secrets.CODECOV_TOKEN }}\n```\n\n\u003e See full [`ci.yml` workflow](./.github/workflows/ci.yml) for reference.\n\nUse the \"Repository upload token\" as the value for the `CODECOV_TOKEN` environment variable. You can find that value in the \"Configuration \u003e General\" section of your project on Codecov:\n\n![Codecov upload token](./codecov-upload-token.png)\n\nPut that value as a new secret for GitHub Actions by going to your GitHub repository, \"Settings \u003e Secrets and variables \u003e Actions\" and click the \"New repository secret\" button.\n\n## Resources\n\n- [**Test Analytics documentation**](https://docs.codecov.com/docs/test-analytics)\n- [Find failing and flaky tests with Codecov Test Analytics](https://about.codecov.io/blog/find-failing-and-flaky-tests-with-codecov-test-analytics/)\n- [Be S.M.A.R.T. About Flaky Tests](https://www.epicweb.dev/be-smart-about-flaky-tests)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkettanaito%2Ftest-analytics-vitest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkettanaito%2Ftest-analytics-vitest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkettanaito%2Ftest-analytics-vitest/lists"}