As mentioned in one of the comments, Istanbul is a really good, very general coverage tool. It acts like an average person between the node process and your scripts, so while you are doing something in the node runtime, it should do what you want. I'm not sure how you do selenium tests, but I go through mocha like this:
node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- test/*-test.js
Despite the fact that mocha usually starts as its own βteamβ, it can be βfedβ in istanbul, and the cover is printed in this way. Therefore, in your case, any command that you use to run interface tests in node / selenium can be run in istanbul. As I said, this is a very general process that can be applied to everything that works in node.js.
Now I have no experience with Selenium, but I know that this is a bit of a Rube Goldberg system with many interconnected processes (some potentially on different machines). If you are looking for something to capture both the first and the backends, as well as test code (or external code running in a browser, served from the internal code) in one line, I am not sure what exists ("an external application written in NodeJS ") is what put me in this).
mattr source share