Hi guys (btw thanks shawn for keeping the clojure thread alive !!!) :
I'm totally new to macros and extending clojure, so concrete examples would really help :
My problem : I have 3 types of unit tests - fail, succeed, and warning. However, default Leiningan test only seems to have 2 outputs : failures, and successes.
My happiness : I noted that the clojure.test package has a great API, and is really modular. Thus, I know my problem has a solution !
My new problem : How can I extend my unit tests to have 3 result types, and how can I integrate these result types with my build ?
In particular I want to know
1) How is success/failure defined/determined by clojure.test and how is this communicated to external programs (i.e. like jenkins) which automate clojure builds ??? We are planning on automating our builds, and I need to know how clojure conveys success/failure (for that matter, I don't even know how ANT defines/conveys success/failure, and I use ANT every day, so I have a long way to go as a build engineer) .
2) How can I define a "third" test result for tests that don't pass, but dont fail either (for example, in PHP, you can "skip" a unit test)??? I assume clojure might offer a flexible way of defining new test outputs. In particular I found a success? function uses a map.... But its not quite clear how it is used or extended to me.