No output when using Ruby 1.9.3 and test-unit #59

Closed
fernandomm opened this Issue May 28, 2012 · 9 comments

Projects

None yet

7 participants

@fernandomm

Hi,

I have the following Rakefile:

require 'rake'

gem 'ci_reporter'
require 'ci/reporter/rake/test_unit'

task :test do
  ruby 'signup.rb'
end

And the following file:

require 'rubygems'
require 'test/unit'

class SignupTest < Test::Unit::TestCase
    def test_signup
        assert true
    end
end

When i run rake ci:setup:testunit test i get:

rm -rf test/reports
/Users/fernando/.rvm/rubies/ruby-1.9.3-p0/bin/ruby signup.rb
Run options: 

# Running tests:

.

Finished tests in 0.000820s, 1219.5122 tests/s, 1219.5122 assertions/s.

1 tests, 1 assertions, 0 failures, 0 errors, 0 skips

Seems like it should have generated some kind of content in test/reports but this directory does not exist.

Any ideas of what i should do?

@tpberntsen

Hi there,

I am experiencing the same issue: no output in the mentioned directories.

Cheers,
Thomas

@nicksieger
Member

Which version of ci_reporter and test-unit are you guys using?

@tpberntsen

I'm using the following:

test-unit (2.5.2)
ci_reporter (1.7.2)

@fiddur
fiddur commented Nov 7, 2012

I'm having the same problem, with test-unit 2.5.2 and ci_reporter 1.7.3 in ruby 1.9.2-head.

@rvyas
rvyas commented Nov 7, 2012

Same issue, same version of test-unit(2.5.2) and ci_reporter(1.7.3) with ruby 1.9.3.
I was also reading the History.txt and README and there was no indication of test-unit compatible versions.
I would appreciate any help or workaround if there is any.

@andrewherron

Also having this issue: Ruby 1.9.3, TestUnit 2.5.4, and CI Reporter 1.8.4.

@andrewherron

Got it working on my local machine, though there's still no output on my Jenkins server. Here's what I did:

In Rakefile, I first include minitest:
require 'ci/reporter/rake/minitest'

Then, just after I specify :test as my default and before my tests are loaded up from the test folder:
task :test => 'ci:setup:minitest'

Hope this helps everyone, and I'll update if I can get Jenkins to play nice.

@shepmaster shepmaster added the test-unit label Jun 3, 2014
@shepmaster
Member

We are in the process of cleaning out old issues. Specifically, the
next version of CI::Reporter is only going to support Test::Unit
bundled with the latest version of Ruby 1.9.3, 2.0, and 2.1. If this
issue still applies to these versions, please let us know, otherwise
we're going to close this issue to focus on current problems. Thanks
for your report!

@shepmaster
Member

Closing due to inactivity.

@shepmaster shepmaster closed this Jul 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment