{"id":15552264,"url":"https://github.com/bahmutov/code-coverage-vue-example","last_synced_at":"2025-08-31T00:31:17.331Z","repository":{"id":35724189,"uuid":"193121355","full_name":"bahmutov/code-coverage-vue-example","owner":"bahmutov","description":"Code coverage for Vue single file components from Cypress.io end-to-end tests","archived":false,"fork":false,"pushed_at":"2024-09-28T07:10:41.000Z","size":1222,"stargazers_count":13,"open_issues_count":17,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-03T14:14:09.153Z","etag":null,"topics":["cypress-code-coverage-example"],"latest_commit_sha":null,"homepage":"https://on.cypress.io/code-coverage","language":"Vue","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/bahmutov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-06-21T15:27:35.000Z","updated_at":"2024-07-06T08:17:31.000Z","dependencies_parsed_at":"2023-10-15T05:25:19.250Z","dependency_job_id":"3499f91a-171a-41aa-a8a1-e40a83208bc8","html_url":"https://github.com/bahmutov/code-coverage-vue-example","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/bahmutov%2Fcode-coverage-vue-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcode-coverage-vue-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcode-coverage-vue-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fcode-coverage-vue-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/code-coverage-vue-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231539812,"owners_count":18392338,"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":["cypress-code-coverage-example"],"created_at":"2024-10-02T14:14:09.620Z","updated_at":"2024-12-27T21:05:04.445Z","avatar_url":"https://github.com/bahmutov.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-coverage-vue-example [![renovate-app badge][renovate-badge]][renovate-app] [![CircleCI](https://circleci.com/gh/bahmutov/code-coverage-vue-example/tree/master.svg?style=svg)](https://circleci.com/gh/bahmutov/code-coverage-vue-example/tree/master) [![Coverage Status](https://coveralls.io/repos/github/bahmutov/code-coverage-vue-example/badge.svg)](https://coveralls.io/github/bahmutov/code-coverage-vue-example)\n\u003e Code coverage for Vue single file components from Cypress.io end-to-end tests\n\nUses [@cypress/code-coverage](https://github.com/cypress-io/code-coverage) plugin for [Cypress.io](https://www.cypress.io) test runner. See [https://on.cypress.io/code-coverage](https://on.cypress.io/code-coverage) documentation.\n\n![Total coverage](images/coverage.png)\n\nIndividual `.vue` file coverage\n\n![Vue file coverage](images/component-coverage.png)\n\nBecause this application is served using `webpack-dev-server, it instruments the application code following the example in [bahmutov/code-coverage-webpack-dev-server](https://github.com/bahmutov/code-coverage-webpack-dev-server) via [.babelrc](.babelrc) and [webpack.config.js](webpack.config.js) files.\n\n## Coveralls\n\nYou can find the code coverage for this project at [https://coveralls.io/github/bahmutov/code-coverage-vue-example](https://coveralls.io/github/bahmutov/code-coverage-vue-example). To send the coverage information there:\n\n- install [coveralls](https://github.com/nickmerwin/node-coveralls) npm module with `npm i -D coveralls`\n- add npm script to [package.json](package.json)\n```json\n{\n  \"scripts\": {\n    \"coveralls\": \"nyc report --reporter=text-lcov | coveralls\"\n  }\n}\n```\n- after the tests call the above command, see [.circleci/config.yml](.circleci/config.yml)\n```\n- run: npm run coveralls\n```\n- on CircleCI set two environment variables\n```\nCOVERALLS_REPO_TOKEN=... (token from Coveralls.io)\nCOVERALLS_SERVICE_NAME=circleci\n```\n\n## License\n\nThis project is licensed under the terms of the [MIT license](/LICENSE.md).\n\n[renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg\n[renovate-app]: https://renovateapp.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcode-coverage-vue-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fcode-coverage-vue-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fcode-coverage-vue-example/lists"}