From: Jon S.
Sent on: Tuesday, August 25, 2009, 5:15 PM
Great stuff, everyone... very helpful.  Thanks much.
 
I've purchased the RSpec book and have started on that with a friend...today.
 
Cheers...jon


From: [address removed] [mailto:[address removed]] On Behalf Of Wolfram Arnold
Sent: Monday, August 24,[masked]:17 AM
To: [address removed]
Subject: Re: [ruby-81] Re: Pros + cons of various testing frameworks...

Along those same lines I've heard in a presentation once to start testing from the log entries. You could even take the log entries generated by your smoke test which report parameters and results.

Wolf

-- Sent from my Palm Pr?


Chad Woolley wrote:

On Sun, Aug 23, 2009 at 3:06 PM, Steve Midgley<[address removed]> wrote:
> Whatever framework you decide to use, one tip that might be helpful in
> building legacy tests, is to start with your "smoke tests." You could build
> a lot of: "Given this set of parameters, this GET request should return
> 200-Ok, and in the resulting HTML there should be an input tag with this
> value." This sets some a baseline harness around your system to define it's
> behavior in the most fundamental way (these parameters in, this html out).
>
> It's not the ideal way to build TDD from the ground up, but I've found it
> can help to give you some control over your overall environment, so that as
> you change code, you can be confident that your major functionality hasn't
> just failed.

Yes, this is a very good point. If you really must write tests for
your existing code, start with some high-level 'happy path' tests of
the flow of your external user interface. This can avoid the catch-22
of lower-level unit tests forcing you to refactor when you don't have
any tests to catch bugs.

-- Chad



--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
http://ruby.meetup.com/81/
This message was sent by Chad Woolley ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Chad Woolley, visit his/her member profile: http://ruby.meetup.com/81/members/2726338/
To unsubscribe or to update your mailing list settings, click here: http://www.meetup.com/account/comm/
Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Wolfram Arnold ([address removed]) from The East Bay Ruby Meetup Group.
To learn more about Wolfram Arnold, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup Support: [address removed]
632 Broadway, New York, NY 10012 USA