Node.js test runner missing features, or am I missing a config?

The Node.js test runner has some basic support in Webstorm/IntelliJ, and I wonder if there is some way (maybe some hack*) to make these features work

  • Watch mode: this is marked as experimental in Node.js, but it works just fine for me from the command line. In Webstorm, there is no button for that.
  • Display test execution times: readily available in the CLI, but missing from Webstorm's UI, even though I checked “show inline statistics”
    • Consequentially, “Sort by execution time” does nothing
  • Re-run failed tests - this is actually a must-have
  • Run with coverage: would be really nice to have

You can see that these features are available with, for example, the Jest test runner:

* I was thinking maybe I could write a wrapper script and trick WebStorm into thinking this is Jest, or something like that
 

0
2 comments

1. Please follow WEB-63418 for updates.

2, 3. I created WEB-70896 and WEB-70897, please feel free to vote for them.

4. this one is tracked at WEB-63420, please vote for it to get notified of any progress.

0

Thank you Elena,

good to know that these are just missing features, and it's not my incompetence to make it work ;)

I had a look at the nodejs-test-runner-intellij plugin and found that WEB-70897 is an easy fix (see ticket).

For the other features, I don't think I'll invest more time hacking, but I'll just wait for the JetBrains team to implement :)

0

Please sign in to leave a comment.