Skip Menu |

This queue is for tickets about the AnyEvent CPAN distribution.

Report information
The Basics
Id: 22931
Status: resolved
Priority: 0/
Queue: AnyEvent

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.0
Fixed in: (no value)



Subject: A compile test
I noticed AnyEvent has no tests. Attached is a simple compile test you can drop right in.
Subject: 00compile.t
#!/usr/bin/perl -w use Test::More; use File::Find; my @modules; find sub { return unless /\.pm$/; push @modules, $File::Find::name; }, "lib"; @modules = map { s[^lib/][]; $_ =~ s[.pm$][]; $_ =~ s[/][::]g; $_ } @modules; plan tests => scalar @modules; for my $module (@modules) { require_ok $module; }
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #22931] A compile test
Date: Sun, 12 Nov 2006 13:33:56 +0100
To: Michael_G_Schwern via RT <bug-AnyEvent [...] rt.cpan.org>
From: Marc Lehmann <schmorp [...] schmorp.de>
On Fri, Nov 10, 2006 at 11:16:58AM -0500, Michael_G_Schwern via RT <bug-AnyEvent@rt.cpan.org> wrote: Show quoted text
> > Fri Nov 10 11:16:57 2006: Request 22931 was acted upon. > Transaction: Ticket created by MSCHWERN > Queue: AnyEvent > Subject: A compile test > Broken in: 2.0 > Severity: Normal > Owner: Nobody > Requestors: MSCHWERN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=22931 > > > > I noticed AnyEvent has no tests. Attached is a simple compile test you > can drop right in.
Thanks a lot! However, in _this_ case, the cvs version already has a simple test - just loading all the modules will fail for no good reason on most systems, as the required modules will not be found (and are not required for AnyEvent to function). (That shouldn't keep you from enhancing any other modules by me or others who do lack a testsuite :) -- The choice of a -----==- _GNU_ ----==-- _ generation Marc Lehmann ---==---(_)__ __ ____ __ pcg@goof.com --==---/ / _ \/ // /\ \/ / http://schmorp.de/ -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE
(closing because it seems to be resolved)