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.
Asked
Active
Viewed 68 times
1
-
1My own "testing" process is basically just repeated runs using vmfest and then checking the state of the machines (which could be automated). Not great and it's really slow. – Gordon Seidoh Worley Jun 21 '14 at 17:39
-
This is exactly my current technique and I it is a problem. – shmish111 Jun 21 '14 at 23:18
-
Have you tried asking on the pallet irc channel? that's the best place to get pallet support. – Gordon Seidoh Worley Jun 23 '14 at 17:24
-
I'm asking on there now but I hate IRC, maybe I'm too young :) – shmish111 Jun 26 '14 at 21:35
1 Answers
1
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:
- http://blog.jayfields.com/2010/08/clojuretest-introduction.html
- https://github.com/marick/Midje and
- a discussion comparing these options: How do Midje and Speclj compare?
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 ;-)
-
I marked as correct but basically the answer is 'not really' :) I haven't been doing much work on this lately so haven't looked any deeper yet. – shmish111 Oct 10 '14 at 12:59
-