Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posts Tagged BDD

Posted
18 April 2008 @ 9am

Tagged
Agile, BDD, TDD

Testing Velocity Part 2 - Why do we test?

A couple weeks ago, I began a series on keeping your test suite fast and effective. I now am going to digress a bit, take a step back and view the big picture to establish context.
Before addressing test performance and what makes up a good test, we should ask ourselves why is it that […]


Testing Velocity - Keeping your test suite fast, Part 1

If you are a Ruby or Rails developer, and you know what you are doing, you are writing tests or specs. Tests express the intent of your code, help verify correctness, and aid in design and exploration. Rails gives you helpful conventions to follow and functional and integration testing support for free out […]


Dave Thomas’ testing library (thrown in github)

Dave recently blogged a very cool little test framework he whipped up. Its under 100 lines of code and he says he definitely does not plan on supporting it publicly.
At the very least I intend on playing with it and incorporating some of the ideas, so I put it up on github. […]


autotest without the unit_diff

Ever since getting ZenTest 3.9.1, it seems unit-diff is always turned on. That means your output in autotest is noiser, and I prefer the normal output from my spec or test framework. Anyways, I'm not sure what changed since earlier versions of autotest (maybe the rails command used to override the command string?), [...]


Why I use test/spec over rspec

...the worst thing that can happen to a code base is size. -- Steve Yegge

Project
LOC

RSpec
15581

test/spec
1512

bacon
477

(Lines of code counted with sloccount, adding up only results from the lib and test (or spec) directories for each of the latest gems.)


[ANN] multi_rails 0.0.4 Released

MultiRails lets you test your Rails plugin or app against many versions of Rails in one sweep.
DESCRIPTION:
MultiRails allows easy testing against multiple versions of Rails for your Rails specific gem or plugin. It also has tentative support testing Rails applications against multiple versions of Rails.
Use MultiRails to hook in Rails 2.0 testing in your [...]


Posted
7 August 2007 @ 3pm

Tagged
BDD, Rails, Ruby

Add “should.include?” for test/spec

I have done the following one too many times:

collection.should.include?(object)

Only to have it fail because test/spec's should doesn't know about include? (or .not.include?)
However, as Chris points out in the comments, test/spec does allow .should.include (without the "?"), but does not have a should.not version of it. So the following adds a alias with [...]


Quick Note on zentest 3.5

Ryan released zentest 3.5 last week, and for some reason a normal 'sudo gem update' wasn't picking it up. Searching remote gems for 'zentest' reveals why:
*** REMOTE GEMS ***
ZenTest (3.4.3, 3.4.2, 3.4.1, 3.4.0, 3.3.0, 3.2.0, 3.1.0, 3.0.0)
ZenTest provides 4 different tools and 1 library: zentest,
unit_diff, autotest, [...]


BDD in Rails - test/spec and rspec

I've been playing a bit with test/spec lately in attempts to start doing more BDD. I've been following RSpec, the better known Ruby BDD library for awhile, but decided against it since it just doesn't look practical for use in an established project with around ~400 test cases. It also seems that development [...]