Advice on unit testing reactive handlers?

Pete Vander Giessen petevg at gmail.com
Sun Apr 10 15:31:10 UTC 2016


Hello All,

I'm currently working on writing a layered charm, and I had a question
about unit (or unit-ish) testing. Is it practical to write unit test for,
say, helpers for a reactive handler? Does anybody have any favorite
examples they can point me at?

There's a lot of awesome automagic in a juju charm, but I'm having a little
trouble setting up paths and environments with that magic mocked out for
unit-style tests. :-/

(The reason I'm trying to write smaller tests is that I'd like to speed up
my testing cycle while I'm still in the obvious mistakes and silly typos
stage of writing the charm)

Thank you in advance,
~ PeteVG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160410/f2fc798f/attachment.html>


More information about the Juju mailing list