jasmine / IdeaJasmine

12 stars 5 forks source link

Enabling coverage reports #11

Open bbernstein opened 5 years ago

bbernstein commented 5 years ago

Would it be possible to enable the coverage features of the IDE? I add nyc to the command to get the coverage data output as lcov, but I have no way to look at it through the built-in coverage tools in RubyMine. It seems like there must be a flag of some sort to enable it as it seems to work with other testing plug-ins. Coverage is an important part of tests and it would be nice if it could also be enabled.

bbernstein commented 5 years ago

Reference a post to JetBrains support:

Run with coverage is only enabled for supported test runners (Karma, Mocha, Jest, ...). Loading existing coverage reports generated externally is also not supported (https://youtrack.jetbrains.com/issue/WEB-10303).

Hoping this could be a supported test runner at some point.

Thanks for the great work so far!

slackersoft commented 5 years ago

I don't know what it would take to become a "supported" test runner in IntelliJ. I would actually be fine if JetBrains wanted to make their own, or incorporate what is here into a supported test runner to lower the maintenance burden on the Jasmine team.