Open gearsdigital opened 8 years ago
Currently I'm running into an issue described here. https://github.com/karma-runner/karma-coverage/issues/185. I'm quite unsure if this is related to isparta, istanbul or my-brain. Maybe i miss something?
isparta
istanbul
my-brain
Let me explain what's going on. I've a simple library, written in ES6, which i want to test.
Example code: https://github.com/gearsdigital/stunning-octo-train
// src/utilities.js export function objectLength(obj) { return Object.keys(obj).length; }
// test/utilities-spec.js import {objectLength} from '../src/utilities'; describe('utilities', function () { });
The generated coverage report looks fine so far:
If i want to reuse the method written above and execute it, the overage report looks wrong for me. There are no tests for this method.
I wrote about the same problem here: http://stackoverflow.com/questions/34291595/karma-coverage-report-shows-code-as-covered-which-is-obviously-not-covered
Currently I'm running into an issue described here. https://github.com/karma-runner/karma-coverage/issues/185. I'm quite unsure if this is related to
isparta
,istanbul
ormy-brain
. Maybe i miss something?Let me explain what's going on. I've a simple library, written in ES6, which i want to test.
Example code: https://github.com/gearsdigital/stunning-octo-train
Given
Spec
Expected Result
The generated coverage report looks fine so far:
Unexpected Result
If i want to reuse the method written above and execute it, the overage report looks wrong for me. There are no tests for this method.
I wrote about the same problem here: http://stackoverflow.com/questions/34291595/karma-coverage-report-shows-code-as-covered-which-is-obviously-not-covered