Hi David, Thanks for getting back. I piped it.
system("ruby #{full_path} -fh > C:\\rspec_reports\\#{file_name}.htm") Works fine (in windows) Aidy 2008/8/20 David Chelimsky <[EMAIL PROTECTED]>: > On Tue, Aug 19, 2008 at 7:09 AM, aidy lewis <[EMAIL PROTECTED]> wrote: >> Hi David, >> >> 2008/8/18 David Chelimsky <[EMAIL PROTECTED]>: >> >>> Those options don't make it to the runner, which reads the actual >>> command line (ARGV). >>> >>> What I typically do is load up runner files that look like this: >>> >>> # stories/accounting/stories.rb >>> with_steps_for :accounting do >>> run 'path/to/a/story/file' >>> end >>> >>> The, in a terminal: >>> >>> $ ruby stories/accounting/stories.rb -fh:/rspec_reports/#{filename}.htm >> >> I created a rake file that cycles through a number of runner folders >> and runs individual ruby files using the kernal 'system' method so >> that I can produce HTML reports. >> >> <rake> >> task :dcs do >> require 'find' >> Find.find("projects/dcs/runner") do |path| >> path.length >> string_end = path.length >> string_begin = string_end -3 >> result = path.slice string_begin ... string_end >> if result == ".rb" >> source_location = "C:\\SvnProjects\\RubyUatFramework\\test\\" >> path = path.gsub("/", "\\") >> full_path = source_location + path >> system("ruby #{full_path} -fh: C:\\rspec_reports\\#{Time.now.to_i}.htm") >> end >> end >> end >> </rake> >> >> However, I think I am having problems with the format switch. The HTML >> will appear in the console but not on the file system. > > Try removing the space between ":" and "C:\\": > > system("ruby #{full_path} -fh:C:\\rspec_reports\\#{Time.now.to_i}.htm") > > That work? > >> >> Thanks for the help >> >> Aidy >> _______________________________________________ >> rspec-users mailing list >> rspec-users@rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users