List Info

Thread: Test::Builder/More/Simple 0.72




Test::Builder/More/Simple 0.72
user name
2007-09-19 22:17:24
This release unfixes a bug.  0.71 fixed a bug where if you
ran a use_ok()
inside a BEGIN block without a plan it would silently fail
and the test would
continue.  For example...

	use Test::More;

	plan tests => 10;

	BEGIN { use_ok("Some::Module") }

It looks like you planned before the use_ok() test ran, but
it's actually run
afterwards because of the BEGIN block.

This turned out to be a pretty common mistake effecting a
couple dozen CPAN
modules.  This means the new Test::More causes a bunch of
test suites that
previously worked fine to fail.

	You tried to run a test without a plan at - line 5.
	BEGIN failed--compilation aborted at - line 5.
	# Looks like your test died before it could output
anything.

Because of this I'm TEMPORARILY rolling the fix back at
least a week to give
CPAN authors a little breathing room to make their fixes. 
The fix is usually
to plan in a BEGIN block.


0.72  Wed Sep 19 20:08:07 PDT 2007
    Bug unfixes
    * The BEGIN  fix for [rt.cpan.org 28345]
revealed a small pile
      of mistakes in CPAN module test suites.  Rolling the
fix back to give
      the authors a bit of time to fix their tests.

0.71  Thu Sep 13 20:42:36 PDT 2007
    Bug fixes
    - Fixed a problem with BEGIN  silently failing
when there's no
      plan set.  [rt.cpan.org 28345]  Thanks Adriano
Ferreira and Yitzchak.
    - Fixed an obscure problem with is_deeply() and
overloading ==
      [rt.cpan.org 20768].  Thanks Sisyphus.

    Test fixes
    - Removed dependency on Text::Soundex [rt.cpan.org
25022]
    - Fixed a 5.5.x failure in fail-more.t
    * Got rid of the annoying sort_bug.t test that revealed
problems with some
      threaded perls.  It was testing the deprecated eq_*
functions and not
      worth the bother.  Now it tests is_deeply(). 
[rt.cpan.org 17791]

    Doc fixes
    - Minor POD mistake in Test::Builder [rt.cpan.org
28869]
    * Test::FAQ has been updated with some more answers.

    Install fixes
    - Fixed the "LICENSE is not a known MakeMaker
parameter name" warning
      on older MakeMakers for real this time.


-- 
Stabbing you in the face so you don't have to.


Re: Test::Builder/More/Simple 0.72
user name
2007-09-20 00:46:19
--- Michael G Schwern <schwernpobox.com> wrote:

> Because of this I'm TEMPORARILY rolling the fix back at
least a week
> to give
> CPAN authors a little breathing room to make their
fixes.  The fix is
> usually to plan in a BEGIN block.

This has happened a couple of times now.  Why don't you use
release
devel versions so that these issues become less serious in
the future?

Cheers,
Ovid

--
Buy the book  - http://www.or
eilly.com/catalog/perlhks/
Perl and CGI  - http://u
sers.easystreet.com/ovid/cgi_course/
Personal blog - http://publiu
s-ovidius.livejournal.com/
Tech blog     - http://use.perl.or
g/~Ovid/journal/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )