Initial import of p5-Test-NoWarnings:
In general, your tests shouldn't produce warnings. This modules causes any warnings to be captured and stored. It automatically adds an extra test that will run when your script ends to check that there were no warnings. If there were any warnings, the test will give a "not ok" and diagnostics of where, when, and what the warning was, including a stack trace of what was going on when it occurred. If some of your tests are supposed to produce warnings then you should be capturing and checking them with Test::Warn, that way Test::NoWarnings will not see them and so not complain.
This commit is contained in:
parent
943068e608
commit
ec69205bc1
4 changed files with 35 additions and 0 deletions
11
devel/p5-Test-NoWarnings/DESCR
Normal file
11
devel/p5-Test-NoWarnings/DESCR
Normal file
|
@ -0,0 +1,11 @@
|
|||
In general, your tests shouldn't produce warnings. This modules
|
||||
causes any warnings to be captured and stored. It automatically
|
||||
adds an extra test that will run when your script ends to check
|
||||
that there were no warnings. If there were any warnings, the test
|
||||
will give a "not ok" and diagnostics of where, when, and what the
|
||||
warning was, including a stack trace of what was going on when it
|
||||
occurred.
|
||||
|
||||
If some of your tests are supposed to produce warnings then you
|
||||
should be capturing and checking them with Test::Warn, that way
|
||||
Test::NoWarnings will not see them and so not complain.
|
18
devel/p5-Test-NoWarnings/Makefile
Normal file
18
devel/p5-Test-NoWarnings/Makefile
Normal file
|
@ -0,0 +1,18 @@
|
|||
# $NetBSD: Makefile,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $
|
||||
|
||||
DISTNAME= Test-NoWarnings-0.082
|
||||
PKGNAME= p5-${DISTNAME}
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/}
|
||||
|
||||
MAINTAINER= tech-pkg@NetBSD.org
|
||||
HOMEPAGE= http://search.cpan.org/dist/Test-NoWarnings/
|
||||
COMMENT= Perl5 module to make sure you didn't emit any warnings while testing
|
||||
|
||||
DEPENDS+= p5-Test-Tester>=0.103:../../devel/p5-Test-Tester
|
||||
|
||||
USE_LANGUAGES= # empty
|
||||
PERL5_PACKLIST= auto/Test/NoWarnings/.packlist
|
||||
|
||||
.include "../../lang/perl5/module.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
1
devel/p5-Test-NoWarnings/PLIST
Normal file
1
devel/p5-Test-NoWarnings/PLIST
Normal file
|
@ -0,0 +1 @@
|
|||
@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $
|
5
devel/p5-Test-NoWarnings/distinfo
Normal file
5
devel/p5-Test-NoWarnings/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1.1.1 2005/11/23 22:00:02 wiz Exp $
|
||||
|
||||
SHA1 (Test-NoWarnings-0.082.tar.gz) = 41571c0e1c2e86a2eb63a6f9cfb769e6ff4630d2
|
||||
RMD160 (Test-NoWarnings-0.082.tar.gz) = 0cd18b19c8a415613648fb15202ebc73c672a785
|
||||
Size (Test-NoWarnings-0.082.tar.gz) = 15036 bytes
|
Loading…
Reference in a new issue