[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Convert Ruby tests from test-unit to minitest

From: James McCoy <jamessan_at_debian.org>
Date: Tue, 17 Nov 2015 08:46:21 -0500

On Nov 17, 2015 8:07 AM, "Philip Martin" <philip.martin_at_wandisco.com> wrote:
>
> Philip Martin <philip.martin_at_wandisco.com> writes:
>
> > James McCoy <jamessan_at_debian.org> writes:
> >
> >> On Mon, Nov 09, 2015 at 12:15:51AM -0500, James McCoy wrote:
> >>> On Sat, Nov 07, 2015 at 10:09:37PM -0500, James McCoy wrote:
> >>> > The attached patch, however, at least gets the test suite working
with
> >>> > the test-unit gem, which is a pre-requisite for testing against Ruby
> >>> > 2.2.
> >>>
> >>> Updated to fix a typo in Makefile.in.
> >>
> >> Ping?
> >
> > Doesn't work on my Debian/stable box if I have the ruby-minitest package
> > installed. I think check_rb() is failing with:
> >
> > /usr/lib/ruby/2.1.0/test/unit.rb:676:in `<class:Runner>': undefined
method `_run_suite' for class `Test::Unit::Runner' (NameError)
> >
> > If I don't have ruby-minitest installed then the tests work. It appears
> > that ruby comes with minitest 4.7.5 and that works, but ruby-mintest
> > installs 5.4.2 and that fails.
>
> Hmm, the same problem affects the current code so this is not a new
> problem introduced by your patch.

Yeah, if you install the ruby-minitest gem, you also need to install the
ruby-test-unit gem.

Mixing the built-in version of one with the gem version of the other
doesn't work well, due to the behavior changes.

Cheers,
James
Received on 2015-11-17 14:46:35 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.