CI :: Reported does not generate xml for Ruby Test :: Units?

I am trying to use CI :: reporter to generate a ruby ​​block test report. My rakefile:

require 'rake' require 'rake/testtask' require 'rake/packagetask' require 'rake' require 'rake/testtask' require 'rake/packagetask' #require 'spec/version' #require 'spec/rake/spectask' #require 'rcov' gem 'ci_reporter' require 'ci/reporter/rake/test_unit' #http://juretta.com/log/2008/11/11/hudson_test_drive_part_1_rails/ require 'ci/reporter/rake/rspec' task :test do ruby "test/test1.rb" end 

My test1.rb file:

 require 'test/unit' class Test1 < Test::Unit::TestCase def test_add s = 1 + 1 assert_equal(2, s) end end 

The command that I run:

 rake ci:setup:testunit test CI_REPORTS=results 

Command output:

 sgoyal@sgoyal-macbook :~/tmp/rake_test/ ==> rake ci:setup:testunit test CI_REPORTS=results (in /Users/sgoyal/tmp/rake_test) rm -rf results /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby test/test1.rb warning: Insecure world writable dir /data in PATH, mode 040777 Loaded suite test/test1 Started . Finished in 0.000235 seconds. 1 tests, 1 assertions, 0 failures, 0 errors 

Now in the output of the command is "rm -rf'ing the result directory, so CI definitely gets the call, but I don't see the result directory.

+2
ruby ruby-test
source share

No one has answered this question yet.

See similar questions:

6
Running ruby ​​unit tests as part of maven integration

or similar:

1998
How to write a switch statement in Ruby
1165
Check if value exists in array in Ruby
1069
How to convert string to lowercase or uppercase in Ruby
1010
Invoking shell commands from Ruby
978
What is attr_accessor in Ruby?
876
Brief Explanation nil v. Empty v. Blank in Ruby on Rails
725
How to create a random string in Ruby
3
How to run all ruby ​​files in a specified directory using rake
one
ci_reporter cannot generate xml output
0
Ruby 2.0 on Mac: Ruby program error

All Articles