Yossef Mendelssohn
3/28/2009 11:34:00 PM
On Mar 28, 6:01=A0pm, "ara.t.howard" <ara.t.how...@gmail.com> wrote:
> =A0 =A0 =A0 =A0returning unexpected results:
> =A0 =A0 =A0 =A0 =A0failure:
> =A0 =A0 =A0 =A0 =A0 =A0expect:
> =A0 =A0 =A0 =A0 =A0 =A0 =A0a: 42
> =A0 =A0 =A0 =A0 =A0 =A0 =A0b: forty-two
> =A0 =A0 =A0 =A0 =A0 =A0actual:
> =A0 =A0 =A0 =A0 =A0 =A0 =A0a: 42
> =A0 =A0 =A0 =A0 =A0 =A0 =A0b: 42.0
You call this beautiful, but I don't understand it. This says that 'a'
is okay and 'b' isn't, right? Maybe it's not so much that I don't
understand it as I don't really like it.
Frankly, I find it rather ironic that you're writing a testing
framework and seemingly advocating BDD. Maybe things have changed
mightily in these heady recent times.
I like some of what you have as points, like the output should be
readable ("beautiful" is a little subjective), and of course that
tests should improve your code. The framework points, about the
framework not being huge and not contributing to brittle tests are
good, and the exit status is interesting. Personally, I live with a
couple of methods (as few as possible) on Object and Kernel so writing
the tests doesn't make me want to kill myself.
I used RSpec for a long time, and still do with some projects. I've
switched bacon for my personal projects, and I love it. As for
mocking, which is necessary in some cases if you want to test without
turning into a serial killer, mocha with RSpec, facon with bacon.
--
-yossef