Hi Chad,
Everything is working fine except the Rspec thing.
What i have done is as follows:
Under cruisecontrol.rb/tasks/cc_build.rake i had added the following code
desc "Task to do some preparations for CruiseControl"
task :prepare do
RAILS_ENV = 'test'
end
desc "Task for CruiseControl.rb, automatically picked up"
task :cruise => [:prepare, "spec"] do
puts "THis is a cruise"
end
which suggest that it should take the test environment and should execute
spec test.Here it is working fine but i am not able to get whether it is
executing or not.So i added a logger file i.e. puts "THis is a cruise" to
check whether it is entering this task or not.
But it is not.
I am not getting whats going wrong.
Also i tried another stunt:
i wrote only CruiseControl::invoke_rake_task 'spec:all'
Now when i run the command it says rake aborted. Don't know how to build
task 'spec:all'
Please help.
Also please suggest how i can add only spec controller or spec models while
running CI
On Fri, Jan 15, 2010 at 9:45 PM, Chad Woolley <[email protected]>wrote:
> On Fri, Jan 15, 2010 at 5:13 AM, Amit Kulkarni
> <[email protected]> wrote:
> > Thanks a lot.It worked.
> > But i got some error in migrations which i will figure it out.
> > Also i have some queries which are as follows:
> > 1: How do i point it to my Rspec test cases?
>
> Your project's default rake task should run your rspec tests, if that
> is what you want. If that isn't happening, fix it in your project -
> it has nothing to do with ccrb.
>
> > 2: By default it takes production environment?Can we change this to test
> > environment?Or should we run the cruise control always in production
> > environment?
> > Since Rspec uses test environment how can we do this in cruisecontrol?
>
> Cruise itself runs in production environment. Your project's default
> rake task should run your rspec tests in the test environment.
>
> > 3: If the build is failed we get mail.Can we get mail if the build is
> passed
> > along with all the tests?
>
> You will get a mail on the first successful build after a failed
> build. There's really no point to getting one for every successful
> build, that's just noise.
> _______________________________________________
> 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