On 11/30/07, James Adam <[EMAIL PROTECTED]> wrote:
>
> On Nov 30, 2007 8:35 PM, DHH <[EMAIL PROTECTED]> wrote:
> > > I think, it does make sense to run migrations in the continuous
> > > integration loop (but not in the local build). Reason: you want to
> > > test them
> >
> > I don't think I understand this. Why do you want or need to
> > continuously test the migrations?
>
> I'm not sure the "continuous" that Alexey was referring to was the CI
> process (as in: it is always running), or a repeated run of every
> migration each time the test suite is run.
>
> The former certainly makes sense; you'd want to test that a migration
> can successfully run based solely on the contents of the SVN
> repository and other expected artefacts; verifying that it won't fail
> because a developer has failed to commit or add a particular file
> before you try and run that migration on the production system.
>
> That is, you'd want to test that any new migrations don't cause a
> system failure - not that every migration can be run, each time the CI
> system runs against a new build.

+1

I would like to see a way to test migration, especially those
involving substantive changes to the data, in the framework.  And
being able to run them against a large enough dataset, preferably a
copy of the production database.  But I don't see testing migrations
being the same thing as running test cases against the test database.

Assaf

>
> --
> * J *
>   ~
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to