You can see examples of sandbox plugin unit tests we've written here:
- https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_decoders_test.go - https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_encoders_test.go - https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_filters_test.go The first tests in each of those files are exercising the core plugin functionality, but if you scroll down you'll find tests for specific plugin implementations, e.g.: - https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_decoders_test.go#L301 - https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_decoders_test.go#L373 Hope this helps, -r On 09/08/2015 06:53 AM, Timur Batyrshin wrote:
Hi, Is there a recommended way to write unit tests for lua sandboxes? I think I haven’t seen any references to that in docs and google told me nothing about that too. Thanks, Timur _______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka
_______________________________________________ Heka mailing list [email protected] https://mail.mozilla.org/listinfo/heka

