Project

General

Profile

Actions

Bug #3972

closed

r28668 breaks test/unit when combined with the testing rake task

Added by tenderlovemaking (Aaron Patterson) over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Target version:
-
ruby -v:
-
Backport:
[ruby-core:32864]

Description

=begin
r28668 makes Test::Unit process command line arguments even when used in conjunction with the rake test loader. This causes every test file to be required twice.

How to reproduce:

  1. Create a file "foo.rb" with a test:

require 'test/unit'

puts "HELLO!"

class Foo < Test::Unit::TestCase
def test_whatever
assert true
end
end

  1. Run the test using the rake test loader like this:

$ ruby -w "/Users/apatterson/.local/lib/ruby/1.9.1/rake/rake_test_loader.rb" "foo.rb"

You'll see "HELLO!" printed twice and warnings about methods being redefined.

Here is a video of the failure:

http://www.youtube.com/watch?v=woj1IYnEZdA
=end


Files

noname (500 Bytes) noname tenderlovemaking (Aaron Patterson), 02/24/2011 05:23 AM
noname (500 Bytes) noname tenderlovemaking (Aaron Patterson), 04/12/2011 08:17 PM
noname (500 Bytes) noname tenderlovemaking (Aaron Patterson), 04/12/2011 08:18 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0