开发者

CI::Reported not generating xml's for Ruby Test::Units?

I am trying to use CI::reporter to generate report of ruby unit tests. 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 I am running:

rake ci:setup:testunit test CI_REPORTS=results

The command's 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 command output, it is 'rm -rf'ing the result directory, so CI is definitely getting called, but I see no results directory.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜