executed lines not marked as covered
Closed this issue · 5 comments
RobbieTheWagner commented
jschilli commented
is that a screenshot from the browser? or external report?
we know that the exports are being transpiled
what version of ember? ember-cli-blanket?
RobbieTheWagner commented
@jschilli that is a screenshot from Code Climate.
I'm on Ember 2.3.1 and ember-cli-blanket 0.8.0
Is it supposed to run coverage on the transpiled code and not the original code?
My options look like this, I might have messed up:
var options = {
modulePrefix: 'ember-math-helpers',
filter: '//.*ember-math-helpers/.*/',
antifilter: '//.*(tests|template).*/',
loaderExclusions: [],
enableCoverage: true,
cliOptions: {
reporters: ['lcov'],
autostart: true,
lcovOptions: {
outputFile: 'lcov.dat',
renamer: function (moduleName) {
var expression = /^ember-math-helpers/;
return moduleName.replace(expression, 'addon') + '.js';
}
}
}
};
RobbieTheWagner commented
Okay, I looked at localhost:4200/tests, and it is transpiled. Now the uncovered part is the actual inside of the function. I'm not sure how it's not covered though. My test correctly does the addition, and it passes, so I am not sure why it is listed as not covered.
test('addition works', function(assert) {
let result = add([20, 10]);
assert.equal(result, 30);
});
RobbieTheWagner commented
RobbieTheWagner commented
This should be fixed with 0.9.1