Project

General

Profile

Actions

Bug #4814

closed

minitest 2.2.x and test/unit do not get along

Added by zenspider (Ryan Davis) over 13 years ago. Updated over 12 years ago.

Status:
Rejected
Target version:
-
ruby -v:
-
Backport:
[ruby-core:36679]

Description

TestParallel tests are broken on trunk after my update of minitest (+ your patch to test/unit to get tests running).

  1. Failure:
    test_jobs_status(TestParallel::TestParallel) [/Users/ryan/Work/svn/ruby/ruby/test/testunit/test_parallel.rb:176]:
    Expected /\d+=test_(first|second|third|forth) */ to match "Run options: -j t2 --jobs-status\n\n# Running ptests:\n\n/Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:495:in ensure in _run_parallel': undefined method each' for nil:NilClass (NoMethodError)\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:552:in _run_parallel'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:561:in _run_suites'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:746:in _run_anything'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/misc.rb:14:in run_tests'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:896:in block in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in each'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:884:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:21:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:609:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:613:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/runner.rb:7:in '\n".

  2. Failure:
    test_no_retry_option(TestParallel::TestParallel) [/Users/ryan/Work/svn/ruby/ruby/test/testunit/test_parallel.rb:170]:
    Expected /^ +\d+) Failure:\nptest_fail_at_worker(TestD)/ to match "Run options: -j t2 --no-retry\n\n# Running ptests:\n\n/Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:495:in ensure in _run_parallel': undefined method each' for nil:NilClass (NoMethodError)\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:552:in _run_parallel'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:561:in _run_suites'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:746:in _run_anything'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/misc.rb:14:in run_tests'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:896:in block in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in each'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:884:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:21:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:609:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:613:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/runner.rb:7:in '\n".

  3. Failure:
    test_should_retry_failed_on_workers(TestParallel::TestParallel) [/Users/ryan/Work/svn/ruby/ruby/test/testunit/test_parallel.rb:162]:
    Expected /^Retrying.+$/ to match "Run options: -j t2\n\n# Running ptests:\n\n/Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:495:in ensure in _run_parallel': undefined method each' for nil:NilClass (NoMethodError)\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:552:in _run_parallel'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:561:in _run_suites'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:746:in _run_anything'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/misc.rb:14:in run_tests'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:896:in block in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in each'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:884:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:21:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:609:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:613:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/runner.rb:7:in '\n".

  4. Failure:
    test_should_run_all_without_any_leaks(TestParallel::TestParallel) [/Users/ryan/Work/svn/ruby/ruby/test/testunit/test_parallel.rb:156]:
    Expected /^.(.SF.F|F..+SF).$/ to match "Run options: -j t2\n\n# Running ptests:\n\n/Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:495:in ensure in _run_parallel': undefined method each' for nil:NilClass (NoMethodError)\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:552:in _run_parallel'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:561:in _run_suites'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:746:in _run_anything'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/misc.rb:14:in run_tests'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:896:in block in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in each'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:895:in _run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/minitest/unit.rb:884:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:21:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:609:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/lib/test/unit.rb:613:in run'\n\tfrom /Users/ryan/Work/svn/ruby/ruby/test/testunit/tests_for_parallel/runner.rb:7:in '\n".

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0