JS Servers for IntelliJ

Is there any way to start code coverage without a browser in intelliJ?

http://www.jetbrains.com/webstorm/webhelp/monitoring-code-coverage-for-javascript.html This is only a Jetbrains lighting tutorial, but both require a browser, so I can’t check my Node.js code . I bet I'm not the only one who wants to get a report on their Node.js code using IntelliJ :)

Karma and JsTestDriver seem to run tests in a browser, so you can test Node.js code with them. In any case, I can perform mocha tests directly from the idea, but without coverage.

+4
source share
2 answers

Edited 2018

This has been possible for quite some time. Works out of the box for jokes, and seems to be very easy for mocha / Istanbul, see:

https://www.jetbrains.com/help/idea/running-unit-tests-on-mocha.html#ws_mocha_code_coverage https://www.jetbrains.com/help/idea/running-unit-tests-on-jest .html # ws_jest_code_coverage

+2
source

There is no such function in WebStorm. Please vote for WEB-10373

+3
source

All Articles