So we were at SDTConf 2010 and @chzy was like, your mission is to test drive the bowling kata without using a prefab test framework like rspec or cucumber, or test unit and whatnot. So @joshwalsh and I were like "fine." And we created this test framework called "Really?" It really(?) is a simple test framework, which is like, totally awesome.
(true == true).really? #=> "Yeah, dude, like, totally."
(true == false).really? #=> "No way, dude."
nil.really? #=> "Dude, nil...It's like, zen."
true.really? "The farm is refreshing?" #=> "The farm is refreshing!"
false.really? "The farm is refreshing?" #=> "The farm is not refreshing!"
nil.really? "The farm is refreshing?" #=> "The farm ain't exactly refreshing!"
"The farm is refreshing?".really? { true } #=> "The farm is refreshing!"
"The farm is refreshing?".really? { false } #=> "The farm is not refreshing! FAIL!"
At this point, you can have your test output in color, with passing tests in green, and failing tests in red, if
you'll just be a pal and set an environment variable REALLY_COLOR=true
. Alternatively, we now accept a
command-line parameter, --color
. This toggles color mode on, regardless of the environment variable setting.
Well check out the roadmap below. That's why we're awesome. We're looking out for you. Reconize.
- switch on color with
--color
command-line parameter. - Completed 22-Nov-2010 by DocOnDev - let
some_string.really?
accept a closure:"The grass is so green?".really? { false } #=> "The grass is not so green! FAIL!"
- Completed 03-Dec-2010 by Joel Helbling