wolfmanjm wrote:

> Did you see this?

Uh, nope. (-:

> http://code.jeremyevans.net/doc/fixture_dependencies/
> 
> It is fixtures for Sequel.

Another minor architectural problem with the Merb community is some of this 
stuff does not leap out at the learner.

> Personally when U actually get around to writing the tests for
> wolfmanblog, I'll probably use givens, but htta is just a personal
> preference.

Go for it. But...

Suppose you have a huge program, full of many more business rules than a blog. 
At my day-job, we have 1,700 test cases and 242 fixtures. To cover business 
rules, they tend to work together. Each test case needs more than a handful of 
those fixtures.

Loading them from YAML (like fixture_dependencies might) is mostly in C - Syck 
and MySQL. The system can generally load them once per test suite, and use a 
transaction and a rollback around each test case, to preserve test isolation.

Our test run is 5 minutes on a high-end server. It's much longer on our puny 
little dev stations.

Under the given{} system, if loading one fixture record took 1 millisecond 
longer - a very generous guestimate for Ruby - our test run would be 6 minutes 
longer.

-- 
   Phlip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to