Open
Description
Versions
"@cypress/code-coverage": "3.2.2",
"cypress": "3.6.1",
"istanbul-instrumenter-loader": "^3.0.1",
"ngx-build-plus": "^7.8.3",
"nyc": 15.0.1
nyc comes with cypress code-coverage plugin
-
Node version - 12.14.1
-
NPM version - 6.13.4
-
Angular version - 6.2.9
-
How do you instrument your application- using istanbul-instrumenter-loader and following bahmutov`s project. https://github.com/bahmutov/cypress-angular-coverage-example
-
window.__coverage__
object was successfully create, cant paste here..! -
.nyc_output
{
"D:\\Project\\projects\\feature-x\\src\\app\\app.module.ts": {
"path": "D:\\Project\\projects\\feature-x\\src\\app\\app.module.ts",
"statementMap": {
"0": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 7,
"column": 1
}
},
"1": {
"start": {
"line": 3,
"column": 12
},
"end": {
"line": 3,
"column": 28
}
},
"2": {
"start": {
"line": 3,
"column": 34
},
"end": {
"line": 3,
"column": 125
}
},
"3": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 5,
"column": 150
}
},
- Do you have any custom NYC settings in
package.json
-No - Do you run Cypress tests in a Docker container? - No on local
I am working on angular app, using typescript and ts-loader. I am able to successfully instrument code. The folder structure is something like this.
Code folder: Project/projects/feature-x/src/app
Cypress folder: Project/projects/feature-cypress/cypress.
Coverage.webpack.js is parallel to cypress folder.
Metadata
Metadata
Assignees
Labels
No labels