Code coverage for Haraka plugin tests? #3218
-
I'm trying to do better at testing my plugins. Is there a way of getting code coverage reporting working with Haraka plugin tests? Using the plugin template as an example:
If I run the tests they pass fine, but no coverage is calculated. I'm quite a nodejs noob, but I'm guessing this is due to the plugin code being loaded via
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
🎉❤️
Unfortunately, not without ripping all the vm.runInContext stuff out of Haraka. That's what is interfering with the testing coverage. PRs are welcome. |
Beta Was this translation helpful? Give feedback.
🎉❤️
Unfortunately, not without ripping all the vm.runInContext stuff out of Haraka. That's what is interfering with the testing coverage. PRs are welcome.