-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test coverage support #129
Comments
Note: nyc claims suppor for applications that spawn subprocesses so fbp-spec might be possible to make work. |
Does |
Generally this is something that needs to happen on the runtime side, and in a runtime-specific manner, as how to compute coverage depends entirely on the language/execution-environment in use. |
@jonnor tried wrapping fbp-spec (via its mocha interface) to Getting zero coverage for the components we test via fbp-spec (but normal coverage for the ones we test via Mocha) |
@bergie what do you mean does not work? Looks fine here |
@jonnor yes, see zero coverage reported for |
@bergie ok. Does not work when running nyc infront of |
@jonnor for See https://github.com/benbria/coffee-coverage/blob/master/docs/HOWTO-nyc.md |
Presumably that needs to be done in the process which uses the coffee files. Which would explain why it is not working in fbp-spec case: It is the runtime that requires the files (not |
@jonnor correct, we should probably add a mocha-style But first to verify this, it might make sense to add this manually to noflo-nodejs Update: tried patching that to noflo-nodejs locally, and still got zero coverage |
It would be nice to be able to get test coverage reports from fbp-spec. Something like https://www.npmjs.com/package/nyc
The text was updated successfully, but these errors were encountered: