Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Changed test code not reflected in coverage #59

@sverhoeven

Description

@sverhoeven

Description

Coverage report does not change after adding test and running test suite.

Expected behavior

After test run the coverage is changed with newly tested code covered.

Actual behavior

After test run the coverage is unchanged, leaving newly tested code uncovered.

Environment

Error happens in https://github.com/3D-e-Chem/molviewer-tsx/blob/2588004f600064964f471149c6cd8f6e14f083f0

node: v7.8.0
npm: 4.2.0
yarn:0.21.3

Reproducible Demo

  1. Clone repo (https://github.com/3D-e-Chem/molviewer-tsx.git) + yarn install
  2. Comment out test at https://github.com/3D-e-Chem/molviewer-tsx/blob/2588004f600064964f471149c6cd8f6e14f083f0/src/components/GLModel.spec.ts#L28-L32
  3. Started with correct coverage in coverage/remapped directory.
  4. Enable test again to increase the coverage then ran yarn test -- --coverage.
  5. Afterwards the coverage report is unchanged.

Workaround: Before running test clearing coverage and jest cache by rm -r coverage/ /tmp/jest.

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