karma-runner / karma-runner/karma-coverage

IE cache affecting the karma coverage

Open
#72 1 comment 0 reactions 0 assignees View on GitHub
needs: feedback-from-author
Dominant language
JavaScript
Stars
771
Forks
242
PR merge metrics
No merged PRs in 30d

Description

I found that something wrong with my karma coverage.

Here is my preprocessors and browser configuration:
preprocessors: {
'lib/src/src1.js' : ['coverage'],
'lib/src/src2.js' : ['coverage']
},
browsers: ['IE', 'Chrome'],

Firstly, reports in both IE and Chrome show the coverage correctly. Then I remove 'lib/src/src1.js' in my preprocessors's configuration. This time, report of Chrome shows only about src1.js's coverage. However, IE report still shows the coverage of both src1.js and src2.js.

I was wondering that if this is affected by the IE cache. So I clear the IE cache thoroughly. Magically, reports in IE and Chrome are correct again.

How can I fix this issue ??? Is there any wrong with my configurations ??? Or is there any version of karma-coverage fix this bug???

ps. I had tested in both IE10 and IE11, windows 7. It comes the same result.

Many thx!!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.