Skip to content

Commit

Permalink
fix: rename the project, close #11
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Jun 4, 2019
1 parent a7ef822 commit a328764
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# cypress-istanbul [![CircleCI](https://circleci.com/gh/cypress-io/cypress-istanbul.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-istanbul) [![renovate-app badge][renovate-badge]][renovate-app]
# @cypress/code-coverage [![renovate-app badge][renovate-badge]][renovate-app] [![CircleCI](https://circleci.com/gh/cypress-io/cypress-istanbul.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-istanbul)

> Saves the code coverage collected from instrumented code
> Saves the code coverage collected during Cypress tests
## Install

```shell
npm install -D cypress-istanbul
npm install -D @cypress/code-coverage
```

and its peer dependencies
Expand All @@ -17,14 +17,14 @@ npm install -D nyc istanbul-lib-coverage cypress
Add to your `cypress/support/index.js` file

```js
import 'cypress-istanbul/support'
import '@cypress/code-coverage/support'
```

Register tasks in your `cypress/plugins/index.js` file

```js
module.exports = (on, config) => {
on('task', require('cypress-istanbul/task'))
on('task', require('@cypress/code-coverage/task'))
}
```

Expand Down Expand Up @@ -56,8 +56,8 @@ Put the following in `cypress/plugins/index.js` file to use `.babelrc` file

```js
module.exports = (on, config) => {
on('task', require('cypress-istanbul/task'))
on('file:preprocessor', require('cypress-istanbul/use-babelrc'))
on('task', require('@cypress/code-coverage/task'))
on('file:preprocessor', require('@cypress/code-coverage/use-babelrc'))
}
```

Expand All @@ -71,7 +71,7 @@ Now the code coverage from spec files will be combined with end-to-end coverage.

## Debugging

Run tests with `DEBUG=cypress-istanbul` environment variable to see log messages
Run tests with `DEBUG=code-coverage` environment variable to see log messages

## License

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cypress-istanbul",
"name": "@cypress/code-coverage",
"version": "0.0.0-development",
"description": "Saves the code coverage collected from instrumented code",
"description": "Saves the code coverage collected during Cypress tests",
"main": "index.js",
"scripts": {
"test": "cypress run",
Expand All @@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/cypress-io/cypress-istanbul.git"
"url": "https://github.com/cypress-io/code-coverage.git"
},
"keywords": [
"cypress",
Expand All @@ -30,9 +30,9 @@
"author": "Gleb Bahmutov <gleb.bahmutov@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/cypress-io/cypress-istanbul/issues"
"url": "https://github.com/cypress-io/code-coverage/issues"
},
"homepage": "https://github.com/cypress-io/cypress-istanbul#readme",
"homepage": "https://github.com/cypress-io/code-coverage#readme",
"files": [
"*.js"
],
Expand Down
2 changes: 1 addition & 1 deletion task.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const istanbul = require('istanbul-lib-coverage')
const { join } = require('path')
const { existsSync, mkdirSync, readFileSync, writeFileSync } = require('fs')
const execa = require('execa')
const debug = require('debug')('cypress-istanbul')
const debug = require('debug')('code-coverage')

// these are standard folder and file names used by NYC tools
const outputFolder = '.nyc_output'
Expand Down

0 comments on commit a328764

Please sign in to comment.