Skip to content
Code coverage for Vue single file components from Cypress.io end-to-end tests
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
cypress add better test Jun 27, 2019
images add screenshots Jun 27, 2019
src add screenshots Jun 27, 2019
.babelrc finally got coverage Jun 21, 2019
.gitignore trying to instrument Vue code Jun 21, 2019
.nycrc
LICENSE.md add circle and renovate Jun 27, 2019
README.md add screenshots Jun 27, 2019
cypress.json add cypress Jun 21, 2019
package-lock.json Update dependency webpack-cli to v3.3.6 Jul 14, 2019
package.json Update dependency webpack-cli to v3.3.6 Jul 14, 2019
renovate.json add circle and renovate Jun 27, 2019
webpack.config.js remove commented out parts from webpack config Jun 27, 2019

README.md

code-coverage-vue-example renovate-app badge CircleCI Coverage Status

Code coverage for Vue single file components from Cypress.io end-to-end tests

Uses @cypress/code-coverage plugin for Cypress.io test runner. See https://on.cypress.io/code-coverage documentation.

Total coverage

Individual .vue file coverage

Vue file coverage

Because this application is served using `webpack-dev-server, it instruments the application code following the example in bahmutov/code-coverage-webpack-dev-server via .babelrc and webpack.config.js files.

Coveralls

You can find the code coverage for this project at https://coveralls.io/github/bahmutov/code-coverage-vue-example. To send the coverage information there:

{
  "scripts": {
    "coveralls": "nyc report --reporter=text-lcov | coveralls"
  }
}
- run: npm run coveralls
  • on CircleCI set two environment variables
COVERALLS_REPO_TOKEN=... (token from Coveralls.io)
COVERALLS_SERVICE_NAME=circleci

License

This project is licensed under the terms of the MIT license.

You can’t perform that action at this time.