Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ci_reporter and Rails 4 #106

Closed
elixer34 opened this issue Aug 1, 2013 · 11 comments
Closed

Issue with ci_reporter and Rails 4 #106

elixer34 opened this issue Aug 1, 2013 · 11 comments
Labels

Comments

@elixer34
Copy link

elixer34 commented Aug 1, 2013

I've created a new Rails 4 app and would like to use ci_reporter for testing. However, after running 'bin/rake ci:setup:minitest test', my tests pass but the report files are not being generated. When I roll my app back to Rails 3.2.12 it seems to work fine. Is there a known issue with Rails 4?

@simonharrer
Copy link

I do have the same issue. Have not found a solution yet.

@pbendersky
Copy link

I'm using minitest-reporters as a workaround.

Just include it on your Gemfile and add the following to your test_helper.rb:

require 'minitest/reporters'
MiniTest::Reporters.use! [MiniTest::Reporters::DefaultReporter.new,
                          MiniTest::Reporters::JUnitReporter.new]

@simonharrer
Copy link

Perfect. This works flawlessly with my rails4 app! Thanks.

@TomNaessens
Copy link

Same issue here (Rails 4.0.3)

@ericfrancis
Copy link

Same issue. Thank you for the fix @pbendersky.

@agoodno
Copy link

agoodno commented Apr 28, 2014

I'm seeing the same issue with Test::Unit. Does anyone know of a fix yet for that? I'm willing to dig deeper if someone could get me started on where to look. I'm getting no output and no error so I'm not sure where to start.

@retoo
Copy link

retoo commented Apr 30, 2014

Got it working with:

RAILS_ENV=test ruby -rci/reporter/rake/minitest_loader -S rake test

which is more or less: require "ci/reporter/rake/minitest_loader"

@agoodno
Copy link

agoodno commented May 13, 2014

Thanks for the tip retoo. I initially put require "ci/reporter/rake/minitest_loader" in test_helper.rb which caused it to run locally too and I didn't mind that until I noticed it swallowing up my debug output statements (puts etc). Now, I'm using your command to have only jenkins run the ci_reporter xmls.

@shepmaster
Copy link
Member

We are in the process of cleaning out old issues. Specifically, the
next version of CI::Reporter is only going to support Minitest 5.0.0 and
above. If this issue still applies to this version, please let us
know, otherwise we're going to close this issue to focus on current
problems. Thanks for your report!

@shepmaster
Copy link
Member

Closing due to inactivity.

@bluehallu
Copy link

Guys, got it working with current version by hooking to the test rake task instead of minitest like:

task :test => 'ci:setup:minitest'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants