Brian Mcardle wrote:
> I'm still a relative newbie to RoR, but I'm finding it a very powerful
> tool. We have a couple of RoR applications up and in production, and
> we're making good use of the automatic testing to make sure they're bug
> free.
> 
> What I would like to do is to test using the MySQL data our users have
> entered. Either using that data to create fixtures, or copying the
> production db into the test db on every test run. With the test db
> recreated on every run, obviously a standard outside dump won't work.
> 
> This would be a far more comprehensive test than the few fixtures we've
> manually created. Is there an easy way to do this?
>

You really don't want to copy the whole production DB for every run. 
You might want to take a snapshot of it and use it as a set of 
production data.

Note also that that is the only use case in which I would *ever* 
recommend touching Rails' fixtures.  For routine testing such as you've 
been doing, you will be a lot happier if you replace your fixtures with 
factories.

> Thanks in advance,
> -Brian

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]


-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to