Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Based on my reading/testing, however, it doesn't seem like this is possible since cover expects a file, as opposed to an actual command. Is there any way to achieve this without having to abstract the test script out into a separate file?
I'd like to be able to do something like this in package.json:
Based on my reading/testing, however, it doesn't seem like this is possible since
cover
expects a file, as opposed to an actual command. Is there any way to achieve this without having to abstract thetest
script out into a separate file?