Stuart (et al), are you open to a rename? Some random ideas:
Sierra
CLJUnit
XUnit
Cluje
Frak
Testify
Truthiness
Clue
Crank
Claim
Verily
I like testify ... keeps "test" in the title. Plus, there is a notion
of false testimony, so it doesn't feel as much like lying as verily
would.
- J.
clojure.test works for me.
Yes, please, one of the ideas behind moving to git was that authors of
contrib libraries that get promoted can easily continue working on
them. I envision we will use git pulls for these long-running
modification situations rather than patches.
Rich
http://github.com/stuarthalloway/clojure
http://github.com/stuarthalloway/clojure-contrib
Plus a ticket:
http://www.assembla.com/spaces/clojure/tickets/131-Move-Clojure-tests-from-contrib-into-Clojure
And a wiki page:
http://www.assembla.com/wiki/show/clojure/Getting_Tests_Into_Clojure
> http://www.assembla.com/wiki/show/clojure/Getting_Tests_Into_Clojure
and in the commit history of the forks:
> http://github.com/stuarthalloway/clojure
> http://github.com/stuarthalloway/clojure-contrib
The only "sore thumb" left is clojure.contrib.template. As things
stand, it is needed by clojure and contrib, but doesn't (IMO) pass the
generality test for inclusion in Clojure.
I don't care exactly how tests get into Clojure, but I am passionate
to see it happen somehow. If these forks are acceptable, great! If
not, I hope they will spur the conversation to quickly settle on
something else.
I am sure there are bits of cruft left over from the conversion. For
example, anything that has a manifest of packages (such as Craig
Andera's gen-html-docs) will need to update to match the new package
structure. I am happy to help clean this up, but the clock is ticking.
If we decide quickly, the forks will be easy to merge, otherwise
perhaps not.
Feedback welcomed!
Stu
P.S. It is worth mentioning that these forks were much easier to do
because of the (minimal) tests already in place, and would have been
even easier with a more complete test suite.
Are those separable, e.g. the reusable test from the multiple assertion?
Rich
> I have created forks to do all this work:
>
> http://github.com/stuarthalloway/clojure
> http://github.com/stuarthalloway/clojure-contrib
Anything you could use help with, or is it not a very parallelizable task?
-Phil
I like the way "are" saves typing. I don't like the way the _1 _2
syntax differs from the %1 %2 syntax of anonymous functions.
But it could macroexpand the test expr prior to dispatch, which would
be a no-op for things like thrown?, right?
Rich
> FWIW, I find walk to be very much in the spirit of Clojure, and
> deserving of core regardless of the needs of the test suite. I demo
> walk almost every time I show Clojure.
I agree. However, I'd take out the macroexpand-all function. While it
is a nice demonstration of how to use walk, it is not a faithful
implementation of how macro expansion works, because it doesn't treat
special forms specially.
Konrad.
Stu
Thanks to everyone, especially both Stuarts!
Rich
On Jun 24, 1:18 am, Stuart Halloway <stuart.hallo...@gmail.com> wrote:
> I think I am done. I have updated the Wiki page in Assembla [1] to
> document the things moving from contrib into Clojure, and to point to
> commits that have everything moved and all tests passing.
>
> Please have a look and let me know if I missed anything. It would be
> nice to merge this soon so there is not extra work keeping it in sync.
>
> Stu
>
> [1]http://www.assembla.com/wiki/show/b4-TTcvBSr3RAZeJe5aVNr/Getting_Test...
> I have pushed the changes to contrib. Contrib tests all pass on my
> box, but there is lots in contrib that is untested, so take a look at
> your contribs. I am happy to help out if you find something weird.
With that change, contrib becomes incompatible with Clojure 1.0,
right? Then it's time to create the "compatible-1.0" branch.
Konrad.
With that change, contrib becomes incompatible with Clojure 1.0,
right? Then it's time to create the "compatible-1.0" branch.