You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Node.js app. I have been trying to run Blanket programmatically within the app without success. I do not get any errors. However, I do not get any details either. I ensured I was using the engineOnly flag as shown my package.json file below:
function runTests() {
var Jasmine = require('jasmine');
var jasmine = new Jasmine();
jasmine.loadConfig({
spec_dir: 'tests',
spec_files: [
'tests-*.js'
]
});
var blanket = require("blanket")({
debug:true,
pattern: ['**.js'],
reporter: function(data) {
console.log('Coverage reporter ran.');
}
});
jasmine.execute();
}
runTests();
I have 2 tests that run successfully and as expected. Its just that no coverage data is showing up. I was expecting to see something since I set the debug flag to true. This implies that I'm not "starting" blanket properly. yet, I'm not sure what I'm missing. It seems pretty straight forward.
The text was updated successfully, but these errors were encountered:
Hello,
I have a Node.js app. I have been trying to run Blanket programmatically within the app without success. I do not get any errors. However, I do not get any details either. I ensured I was using the
engineOnly
flag as shown my package.json file below:package.json
I'm running my tests like this:
app.js
I have 2 tests that run successfully and as expected. Its just that no coverage data is showing up. I was expecting to see something since I set the
debug
flag to true. This implies that I'm not "starting" blanket properly. yet, I'm not sure what I'm missing. It seems pretty straight forward.The text was updated successfully, but these errors were encountered: