Skip to content

The index.html show unknown% and a blank report even after out.json has data. #227

@maddy619

Description

@maddy619

image

Out.json
image

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

{
  "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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions