Search code examples
clojurepallet

Test Session for pallet


Is there a way of testing pallet crates? I am trying to build an elasticsearch crate but each time I want to test something is working I need to start a machine and wait for everything to install etc. Possibly a way to just see what commands would be sent to the machine would be useful to start with and would provide a lot of insight.


Solution

  • I'm discussing this topic currently also. As I'm right, pallet translates config-actions from clojure to bash - right?

    So the clojure part should be testable in the normal clojure way - I found these options valid:

    The translation to bash itself should be well tested in pallet project - so all units are covered. But anyway I expect there many integration-test problems left - and at this point I haven't any good idea yet.

    Okay - your comment made me find an example for testing in pallet (would be interested in your experience ;-)