When running autotest only ''rake spec'' is running and I want it to run ''rake spec:remote'' as well. How do i achieve that? thanks
any clues? On Aug 21, 1:13?pm, oren <orengo... at gmail.com> wrote:> When running autotest only ''rake spec'' is running > and I want it to run ''rake spec:remote'' as well. > > How do i achieve that? > > thanks > _______________________________________________ > rspec-users mailing list > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
oren wrote:> When running autotest only ''rake spec'' is running > and I want it to run ''rake spec:remote'' as well. > > How do i achieve that? > >IIRC, autospec (not autotest) does not use rake at all. It uses the opts defined in spec/spec.opts. I would suggest making any needed changes in that file. HTH, Ben
thanks Ben, I found that autotest and autospec are running all my specs. what I need to do is to separate the execution of spec/remote folder from the rest of the spec files. this folder must run after (or before) the rest. I find a way to tell autotest to ignore this folder, by creating .autotest file: Autotest.add_hook(:initialize) {|at| at.add_exception %r{^\.git} at.add_exception %r{^./tmp} at.clear_mappings # take out the default (test/test*rb) at.add_mapping(%r{^lib/.*\.rb$}) {|filename, _| Dir[''spec/**/*.rb''] - Dir[''spec/remote/*.rb''] } nil } Is it possible to tell autotest to first run spec/remote and only after it''s done to run the rest?