Please provide us with the following information:
Windows 10
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.21
node: 6.9.1
os: win32 x64
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
n/a
Normally this include a stack trace and some more information.
n/a
Is there a way to display code-coverage inside of intellij/webstorm? The cli uses the test.ts file which does some aggregating of the spec files. The problem is, karma uses that and only that file to test. Is there a guide? Perhaps I'm just doing in incorrect?
Thank you!
Right now the Karma plugin for IntelliJ / WebStorm only supports karma-coverage for the coverage reporter. This keeps the stats from showing up in the IDE when you run coverage.
No idea how to do it in WebStorm. I don't use it myself. Will tag issue for community help.
I did some research into this.
// start
intellijUtil.sendIntellijEvent('coverageStartupStatus', {
coveragePreprocessorSpecifiedInConfig : coveragePreprocessorSpecifiedInConfig,
coverageReporterFound : coverageReporterFound
});
// end
intellijUtil.sendIntellijEvent('coverageFinished', lcovFilePath);
I think the ideal solution would be to have a plugin (preferably made by the Webstorm team itself), which:
This would solve the coverage issue for basically all use cases (not just Angular 2), because lcov reporters exist for basically everything.
@marklagendijk thanks for sharing your vision! I agree that the CLI might not be the right place for this feature request. I'll close the issue, please open a new one in case I'm missing something.
Most helpful comment
I did some research into this.
I think the ideal solution would be to have a plugin (preferably made by the Webstorm team itself), which:
This would solve the coverage issue for basically all use cases (not just Angular 2), because lcov reporters exist for basically everything.