M
Michael Schuerig
Rails has recently (in SVN) moved to a modularized Rakefile. This causes
me some trouble as I need to change the tasks executed before
unit/functional tests are run. :test_units as well as :test_functional
depend on :clone_structure_to_test. The latter sets up the test
database as a structural copy of the development database.
Copying includes foreign key constraints present in the development
database. Unfortunately, there is no way I can order loading (and
deletion) of fixtures so that foreign key constraints are satisfied.
Therefore I grudgingly used to create the test db from a definition
file lacking these constraints.
Now, without being able to change the :clone_structure_to_test task
directly, I'm looking for a way to either remove it as a prerequisite
from the test tasks or overwrite it. So far, I've only found ways to
add prerequisites and add blocks that are processes for a task. Is
there a way to do what I need?
Michael
me some trouble as I need to change the tasks executed before
unit/functional tests are run. :test_units as well as :test_functional
depend on :clone_structure_to_test. The latter sets up the test
database as a structural copy of the development database.
Copying includes foreign key constraints present in the development
database. Unfortunately, there is no way I can order loading (and
deletion) of fixtures so that foreign key constraints are satisfied.
Therefore I grudgingly used to create the test db from a definition
file lacking these constraints.
Now, without being able to change the :clone_structure_to_test task
directly, I'm looking for a way to either remove it as a prerequisite
from the test tasks or overwrite it. So far, I've only found ways to
add prerequisites and add blocks that are processes for a task. Is
there a way to do what I need?
Michael