[rspec-users] [OT] Object Mother vs Test Data Builder (was Jay Fields' blog on developer testing)
matt at mattwynne.net
Thu Feb 5 13:54:06 EST 2009
On 5 Feb 2009, at 16:55, David Chelimsky wrote:
> We also have a naming conflict in terms of test categories. The
> definitions as I understand them are:
> * Unit tests test units - generally one object at a time, or perhaps
> more than one object that live within a single component, but never
> crossing the component/layer boundary.
> * Integration tests test integration - between two or more components.
> * Functional tests test functionality - of the application as a whole
> (more like cucumber scenarios)
> By these definitions:
> * what Rails calls unit tests are really integration tests (model and
> database layers)
> * what Rails calls functional tests are really bigger integration
> tests (controller + model + database)
> * what Rails calls integration tests are really functional tests
> (scenarios that take you through routing)
> Confused? Me too.
And me. As much as Rails has done to promote automated testing, I feel
like this confused and confusing language is a real setback.
More information about the rspec-users