Hi Amit, If you'd like CCRB to execute more than one rake task, either place them in sequence (project.rake_task = "spec:controllers spec:models") or define a custom Rake task that runs both tasks as its prerequisites (task :cruise => ["spec:controllers", "spec:models"]). If you define a task named cruise in your project then you don't need to manually set your project's Rake task.
Brian On Tue, Jan 19, 2010 at 8:16 AM, Amit Kulkarni <[email protected]> wrote: > Hello, > I have set up a project and under myproject/cruise_config.rb i had written > following code: > Project.configure do |project| > project.email_notifier.emails = ["[email protected]"] > project.email_notifier.from = ["[email protected]"] > # Build the project by invoking rake task 'custom' > project.rake_task = 'spec:controllers' > end > > This works correctly as it sends me the email and also runs controller > specs. > Now i what i intended to do is to run model specs as well for the same > project. > > i just added project.rake_task = 'spec:models' after controllers but when i > build then it runs model spec first and does not run controller specs. > > Is it the case that if some of my model specs are failing then it will not > execute controller specs? > Please suggest. > > > > _______________________________________________ > Cruisecontrolrb-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > _______________________________________________ Cruisecontrolrb-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
