to be polluted after the first use_ok(),
sin't it?
Thanks,
Andy
--
'Andy Lester[EMAIL PROTECTED]
Programmer/author petdance.com
Daddy parsley.org/quinn Jk'=~/.+/s;print((split//,$)
[unpack'C*',n2]3%+\34.'%.'^%4+!o.'])
.
xoxo,
Andy
--
'Andy Lester[EMAIL PROTECTED]
Programmer/author petdance.com
Daddy parsley.org/quinn Jk'=~/.+/s;print((split//,$)
[unpack'C*',n2]3%+\34.'%.'^%4+!o.'])
.
+
+And of course, you don't have to test only your code. The more tests you
+write, the more stringent your checking:
+
+# From a DBI program
+my $row = $dbh-fetch;
+isa_ok( $row, 'ARRAY', Got row from DB );
+
=cut
sub isa_ok ($$;$) {
--
'Andy Lester[EMAIL PROTECTED]
Programmer/author
means html_ok is broken.
:-(
Thoughts?
Thanks,
xoxo,
Andy
--
'Andy Lester[EMAIL PROTECTED]
Programmer/author petdance.com
Daddy parsley.org/quinn Jk'=~/.+/s;print((split//,$)
[unpack'C*',n2]3%+\34.'%.'^%4+!o.'])
of the HTML in a page.
Also, Max Maischien's newly-released Test::HTML::Content allows for tests
on the contents of the file, with things like do we have a link to X,
do we have any comments on the page? and so on.
http://search.cpan.org/dist/Test-HTML-Content/
xoxo,
Andy
--
'Andy Lester
There's a new Test::Pod in town, and it uses Sean's Pod::Simple instead
of Pod::Checker.
Details at http://use.perl.org/~petdance/journal/10867
Comments welcome, of course.
xoxo,
Andy
--
Andy Lester, lead singer driver of the Winnebago
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http
the silly warnings that I'm most concerned about getting
rid of. Pod::Simple is indeed more realistic.
xoa
--
Andy Lester, lead singer driver of the Winnebago
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
Damn. I still forgot to check out this incredible cool sounding
module, I
have some HTML-output testing in a testsuite and it is very whacky and
uncomplete...
I'd be glad to look at it, and see what kinds of things Mechanize can
do.
xoa
--
Andy Lester, lead singer driver of the Winnebago
connection. Or are you saying that people
will want to use it strictly behind a restrictive firewall where
google.com isn't accessible?
xoa
--
Andy Lester, lead singer driver of the Winnebago
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
#2185. If anyone would like to implement this
and submit the patch to me, I'd appreciate it. I'm fresh out of tuits
for implementing daemons on the fly.
xoa
--
Andy Lester, lead singer driver of the Winnebago
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
-vommit protection more robust in
cases where wait.ph loads but WCOREDUMP() pukes when run.
- Added a LICENSE.
- Ilya noticed the per test skip reason was accumlating between tests.
xoa
--
'Andy Lester[EMAIL PROTECTED]
Programmer/author petdance.com
Daddy
protection more robust in
cases where wait.ph loads but WCOREDUMP() pukes when run.
- Added a LICENSE.
- Ilya noticed the per test skip reason was accumlating between
tests.
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
http://tejasconsulting.com/articles/test-first.html
There's an article by some bloke about test driven development in this
month's Perl Journal.
AND there's one lined up for the upcoming issue of The Perl Review!
--
'Andy Lester[EMAIL PROTECTED]
Programmer/author petdance.com
It's a Test::Builder based testing module, it's designed to replace and
enhances Test::More's is_deeply() and eq_set(). is_deeply() has several
limitiations like not handling circular references and ignoring the
blessedness of references, it also has a few bugs.
It would be nice if the functions
All this make sure no warnings fired is good thinking. But why not
roll it into Test::Harness, and make it switch selectable? It's
really T::H that we want keeping an eye on this, right?
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
There are a couple of minor tweaks to qa.perl.org. Soon, I'll have a
page up for the Phalanx project and THEN we'll have ourselves a good
time!
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
Some of this distribution testing could likely get incorporated into
the Phalanx project, if I get it announced today like I'd like to
do...
Phalanx = beefing up test suites of Perl and the top 100 CPAN
modules to make a good test bed for Ponie
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED
serious ommissions
from the Phalanx 100 module list...
I'm turning to the perl-qa group for feedback BEFORE I announce to
the world, so I appreciate any comments.
Thanks,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
of the Extra Excitement that will
be caused by mucking with them and pumpking coordination and whatnot.
Most I mention because they're important. Some I mention because they
tend to break a lot and reveal subtle incompatibilities in Perl.
Thanks for the list.
xoxo,
Andy
--
Andy Lester = [EMAIL
like to help out, join the perl-qa mailing list, or email
me at [EMAIL PROTECTED] I look forward to hearing from you.
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
go along.
Jay Flowers has started working on CGI::Application, I believe. Jay,
I'll need to know the Before stats on it.
The CMS on perl.org makes updates really simple, so please let me know
what's going on and I'll updated fairly often.
Thanks,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED
updating Test::Reporter as my
module on Phalanx.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
anything yet, other than suck it
into my CVS.
How are the rest of you doing?
Thanks,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
Is it worth trying to agree on a de facto standard name for
such a beast: 99-pod.t/99_pod.t/99.pod.t/99pod.t?
Personally, I'd just as soon not have it be one of the numeric ones. It
doesn't matter what order it's run in.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com
. When I came back from OSCON I was awed by how much
raw Perl power is in London.pm, and how much they drive the Perl
community, especially on Perl 6. I came back to Chicago.pm and
challenged them to do something similar with Phalanx.
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http
http://qa.perl.org/phalanx/status/Archive-Tar.pod and mail it back to
me, that would be fine.
Thanks,
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
I got no response from the author. In worst case, I plan to post the
tests files on rt.cpan.org.
I'm sure Damian will be fine with it. I told him about the project a
while ago and he seemed genuinely excited about it.
xoa
-
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com
useful when I'm going thru a Devel::Cover
run. I interleave POD with functions and I like to refer to my docs.
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
Anything that uses the Ceach operator is a prime candidate for
bugginess. Please keep an eye out for them as you do your testing.
Any function that contains Ceach oughta be heavily checked.
Ditto anything that uses Ckeys or Cvalues without a sort.
xoa
--
Andy Lester
[EMAIL PROTECTED
=verbose, -b=use blib, -r=-recursive
Many fun things to do, geared towards making the cycle of code/test a
shorter one...
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
);
while ( my($key,$val) = each %tests ) {
# do a test
}
The order in which these tests are done will be different between runs
of the code...
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
::Harness.
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
a
clean way to make it an option, I'll do so.
If I've got docs for a function, then I want to see them while I'm
considering the code. Code and documentation are, especially w/POD,
interconnected. That's the beautiful thing about POD.
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http
How am I going to test this ?
Take a look at Test::Warn for warnings, and Test::Exception for errors.
I think qa.perl.org needs a listing of Test::* modules so that people
know what's available.
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org
prove begins with #!/usr/bin/perl and prove-switches.t
runs it with
my @actual = qx/$prove -Ifirst -D -I second -Ithird -Tvdb/;
A $^X should be inserted here.
(in bleadperl, the shebang line of prove is fixed when installed.)
What should be in prove's shebang?
xoa
--
Andy Lester
[EMAIL
that in there? Or are you saying I should run it as
my @actual = qx/$Config{startperl} $prove -Ifirst /;
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
It appears that this doesnt error on 5.8.2, but is repeatable on 5.00503,
as follows:
I don't see any problem here. You can't have more than one plan.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
, and all of my Test::* modules create their own test
name if there's not one passed.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
.
# Very confusing.
ok() is not a comparison. is() is a comparison.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
arbitrary rules based on a sample size of one.
I DO want to document the format, however, so that other languages can
write to the T::H format reliably, and let T::H become the uber-tester.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
I've had more time recently, so I smoke tested the Phalanx 100.
So what did you discover?
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
I'd like to put some kind of reasonably fresh content up on qa.perl.org.
If anyone's got, say, module announcements, that would make sense to
appear on qa.perl.org, please send 'em to me. I'd just like qa.p.o to
be more than a pile of links.
thanks,
xoa
--
Andy Lester = [EMAIL PROTECTED
Because it is, in Test::More. I've yet to need it. Nobody's given me a
patch to implement it.
And T::H doesn't recognize anything like that either?
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
It's been a while since I've heard from any hoplites. Where are you on
your individual Phalanx modules?
I know Hoplite Gessner is pretty close to done on his, but I haven't
heard back on whether his changes were accepted.
xoxo,
Commander Andy
--
Andy Lester = [EMAIL PROTECTED
Probably the most important change is that Devel::Cover will now work
with programs that turn on tainting. I gather this is important for
Phalanx. Hi Andy!
Never mind Phalanx, I'd just like to run Test::Harness under it!
I'll let you know what I find!
--
Andy Lester = [EMAIL PROTECTED
for the updates!
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
is pretty bleeding edge, and it's OK to
require 5.8.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
Id like to propose that I (or someone like me) add a passthru option
which lets someone pass thru options and arguments to the test scripts
being run.
Is this better than some kind of environment variable that you set, and
that your test programs detect and use?
xoa
--
Andy Lester = [EMAIL
give us
something more definite to base it on.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
, Jesse Vincent was having problems with RT,
and was moving, and got hacked, all within about a week of each other
or so, so syncing with CPAN didn't happen. Something like that.
xoa
--
Andy Lester
[EMAIL PROTECTED], AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/
garbled
$Data = $prof-Data;
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
);
+like( $prof, qr/\+\s+1\s+\Q$sql\E/m );
# unlink(dbi.prof); # now done by 'make clean'
-
-1;
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
of Test::More is from August 2002.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
,
should be taint-aware, I think.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
to the fore.
Let's understand the problem before proposing solutions.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
to DBI v2.
Did I not hit all the existing test files? Or just some of 'em?
Also, look into using Devel::Cover to see which parts of DBI are getting
exercised and which aren't.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
Ian Langworth has created a great quickref for Test::* modules at
http://langworth.com/downloads/perl_test_refcard.pdf. I put a link to
it up on qa.perl.org.
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
On Wed, May 05, 2004 at 11:40:32PM -0200, Gabor Szabo ([EMAIL PROTECTED]) wrote:
Is there some command line tool that can be used to report bugs to RT ?
Sure, it's called sendmail.
If you want to send a bug on Test::Harness, send an email to
[EMAIL PROTECTED]
xoa
--
Andy Lester = [EMAIL
it, I'm sure.
I have a note in my modules saying Please send all requests to.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
is
covered. ANY amount of test improvement is still an improvement. I
sent some DBI test patches a month ago, and I thought Tim Bunce was
going to reach through the monitor and give me a big wet kiss.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
think maybe this is a different problem.
One easy, empirical way to find out!
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
$ok.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
So I'm giving an LT on Phalanx next week in Buffalo. Anything in
particular y'all think I should mention?
xoxo,
Andy
To: Andy Lester [EMAIL PROTECTED]
Subject: Your Lightning Talk
Your proposal for a Lightning Talk at the 2004 YAPC::America::North has been accepted.
topic:
Join the Phalanx
, and
then working on it, which has so far not worked at all, that we should
hold up a module (or a handful of them) and say OK, this is what we're
working on. It certainly seemed to work with the DBI stuff last month.
Thoughts?
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com
.
Seems to me that if T:H is passed a test file, it's not unreasonable for
it to expect at least one test.
How about if T:I created a dummy test in the absence of any others?
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
On Fri, Jun 18, 2004 at 12:03:51PM -0700, chromatic ([EMAIL PROTECTED]) wrote:
Is anyone else interested in writing some small excercises for people to
practice their Perl test-fu?
Yes. A lot. I think it'll bring many to the light.
xox,
Andy
--
Andy Lester = [EMAIL PROTECTED
you have, the better. Sure, the first isa_ok
technically covers the constructor, but why not check after EVERY
constructor? The 2nd example is really an entirely different test.
Tests are all about quantity.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
::RecDescent is on the Phalanx 100.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
heuristics if you push it too far it falls apart. Get as close to 100% as
is useful and don't worry about the rest.
Words to live by.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
were together at OSCON.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
-0.01.tar.gz
has entered CPAN as
file: $CPAN/authors/id/P/PE/PETDANCE/Test-Regex-0.01.tar.gz
size: 2890 bytes
md5: 565b7e75907b621dfc411bb967b38fe7
No action is required on your part
Request entered by: PETDANCE (Andy Lester)
Request entered on: Mon, 02 Aug 2004 03:14:00 GMT
Request
' );
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
a test that it continues
to work like that.
=cut
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
A link from Ask Bjoern Hansen's blog: http://www.askbjoernhansen.com/
How To Misuse Code Coverage
http://testing.com/writings/coverage.pdf
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
On Fri, Aug 13, 2004 at 02:29:40PM +0200, Rafael Garcia-Suarez ([EMAIL PROTECTED])
wrote:
Andy Lester wrote:
#./perl -T
^^
the lack of ! here gave me a small headache during the integration.
Sorry about that. Here's one teeny more patch to add, to minimize the
amount of silencing we do
have to do it,
I'd appreciate it, since I have too many things in the hopper right now,
but I'd really like to get it announced.
Thanks,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
with the team. If it's a core module like CGI.pm, then you have to work
with Lincoln and/or p5p.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
as possible (including the test name).
I can't see changing it. What if there are 1000 failed tests?
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
On Oct 16, 2004, at 8:02 PM, Mark Stosberg wrote:
How can I write an automate test for a shell command that prompts for
output. I first tried just using backticks, but that hangs waiting for
input.
Will it take its input from STDIN? If so, pipe stdin to it.
xox,o
Andy
--
Andy Lester = [EMAIL
to chime in on status?
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
hours each. That's 6 tasks at 4 hours each.
You're now at 24 hours. You haven't even started work and you're 20%
over the original estimate. :)
Works fairly well for us, and by fairly well I mean less disastrous.
xoxo,
andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
Also I was thinking it would be nice to be able to run prove and
Devel::Cover together by possibly adding a -M to prove
prove -MDevel::Cover -Ilib -v t/*
I don't recall this -M/-m suggestion, but I like it.
Can someone please submit it to the CPAN queue?
Thanks,
xoxo,
Andy
--
Andy Lester
On Tue, Nov 30, 2004 at 07:48:00AM -0600, Steve Peters ([EMAIL PROTECTED])
wrote:
I like Test::Compat. Test::Legacy makes me think more of the current Test.pm
rather than of a new module.
But it's actually going to be Test.pm, not a new module. Just a new
back-end.
--
Andy Lester = [EMAIL
;
Rather, just make it everything after must be true:
plan tests = 14, have( Foo::Wango ), moon_phase eq waning, etc;
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
into
anything.
plan tests = 14, have( Foo ), moon_phase eq waning;
would be the same as
if ( have(Foo) moon_phase eq waning ) ) {
plan tests = 14;
}
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
tests = 14, have(Foo), moon_phase eq waning;
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
I've reorganized all the trees in http://svn.perl.org/phalanx. A
description of how things should be is at
http://svn.perl.org/phalanx/structure.pod.
Now let's get some updatin'!
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
On Mon, Dec 06, 2004 at 02:27:47AM +, Mark Stosberg ([EMAIL PROTECTED])
wrote:
On 2004-12-02, Andy Lester [EMAIL PROTECTED] wrote:
I've reorganized all the trees in http://svn.perl.org/phalanx. A
description of how things should be is at
http://svn.perl.org/phalanx/structure.pod.
I
is just s
overloaded.
Thoughts?
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
(or preserves them) or any of a number of things that I'd like to
be able to handle.
QD way would be to confess.
is( $nstooges, 3 ) or confess;
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
.
There are now examples in the docs that I hope make you say Wow, this
is cool, thanks RGS!
http://search.cpan.org/dist/Test-LongString
http://search.cpan.org/~rgarcia/Test-LongString-0.05/lib/Test/LongString.pm
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
http://qa.perl.org/testing-guidelines.html is updated. So is
http://qa.perl.org/test-modules.html, with new modules and some
reorganization.
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
::Harness, please don't call it that.
Test::Daemon would be fine. It sounds like what you're describing would
be a superset of Test::Harness.
Thanks,
xoox,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
in love with (well, maybe just a crush on) the idea of having a
continual prove in a window while you're running tests. I'm just trying
to think of how best to do it.
xoa
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
? Please tell me about how and when you use it, so that we might
look at re-implementing it.
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
these be accounted for in the analysis? I don't know.
That's one of the reasons that I put this out for all to work on.
I welcome your comments, suggestions and help on this.
Thanks,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
% to 90%, and Chicago.PM has found and fixed three
bugs in HTML::Googah.
Thanks,
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
. :-/
xoxo,
Andy
--
Andy Lester = [EMAIL PROTECTED] = www.petdance.com = AIM:petdance
1 - 100 of 385 matches
Mail list logo