Re: Kwalitee and has_test_*

2005-04-17 Thread Tony Bowden
On Sun, Apr 17, 2005 at 12:17:17AM +, Smylers wrote: > Remember that we aren't measuring quality, but kwalitee. Kwalitee is > supposed to provide a reasonable indication of quality, so far as that's > possible. So what matters in determining whether a kwalitee heuristic > is appropriate is wh

Re: Kwalitee and has_test_*

2005-04-17 Thread Tony Bowden
On Sun, Apr 17, 2005 at 08:24:01AM +, Smylers wrote: > Negative quality for anybody who includes a literal tab character > anywhere in the distro's source! Negative quality for anyone whose files appear to have been edited in emacs! Tony

Re: Kwalitee and has_test_*

2005-04-08 Thread Tony Bowden
On Thu, Apr 07, 2005 at 02:34:21PM -0400, David Golden wrote: > * Shipping tests is a hint that a developer at least thought about > testing. Counter: It's no guarantee of the quality of testing and can > be easily spoofed to raise quality. This is certainly not why I ship tests, and I've never

Re: Kwalitee and has_test_*

2005-04-07 Thread Tony Bowden
On Thu, Apr 07, 2005 at 12:32:31PM -0400, Christopher H. Laco wrote: > >CPANTS can't check that for me, as I don't ship those tests. > >They're part of my development environment, not part of my release tree. > That is true. But if you don't ship them, how do I know you bothered to > check those t

Re: Kwalitee and has_test_*

2005-04-07 Thread Tony Bowden
On Thu, Apr 07, 2005 at 08:56:26AM -0400, Christopher H. Laco wrote: > I would go as for to say that checking the authors development > intentions via checks like Test::Pod::Coverage, Test::Strict, > Test::Distribution, etc is just as important, if not more, than just > checkong syntax and that

Re: Kwalitee and has_test_*

2005-04-01 Thread Tony Bowden
On Fri, Apr 01, 2005 at 09:00:17PM +0200, Thomas Klausner wrote: > Anyway, I invite everybody to suggest new metrics I'd like the "is pre-req" thing to be more useful. Rather than a binary yes/no thing (and the abuses it leads to), I'd rather have something akin to Google's Page Rank, where the s

Re: Kwalitee and has_test_*

2005-04-01 Thread Tony Bowden
On Fri, Apr 01, 2005 at 09:00:17PM +0200, Thomas Klausner wrote: > > We should be very wary of stipulating HOW authors have to achieve their > > quality. Saying you can only check your POD in one specific way goes to > > far IMO. > That's a good point. > OTOH, I know of several people who added Pod

Kwalitee and has_test_*

2005-03-27 Thread Tony Bowden
I was having a look at CPANTS again this morning, and I noticed something rather strange. There are now two kwalitee tests for 'has_test_pod' and 'has_test_pod_coverage'. These check that there are test scripts for POD correctness and POD coverage. These seem completely and utterly wrong to me.

Re: Fine-tuning output from Devel::Cover

2004-08-17 Thread Tony Bowden
On Tue, Aug 17, 2004 at 04:21:09PM +, [EMAIL PROTECTED] wrote: > No. There's (currently) no option for doing so. The HTML is well formed, > though, which should make building a filter easy if you know how the > formatting works. ;) e.g.: Or applying an XSLT file to it? Tony

Re: Phalanx coverage dumping

2004-08-06 Thread Tony Bowden
On Thu, Aug 05, 2004 at 11:51:09PM -0500, Andy Lester wrote: > It'd be swell if someone generated Devel::Cover dumps for the > Phalanx 100. Like http://pjcj.sytes.net/cpancover/ but for > http://qa.perl.org/phalanx/distros.html. It would be nice if anyone doing the Class::DBI one made sure that t

Re: CPANTS preview

2004-07-23 Thread Tony Bowden
On Fri, Jul 23, 2004 at 08:41:58AM +0200, James Mastros wrote: > BTW, I tend to think that modules that require lots of other things > deserve lower kwalitee... Because reinventing the wheel is a good thing, right? Tony

Re: Testing Database Schema

2004-07-22 Thread Tony Bowden
On Sun, Jul 18, 2004 at 04:49:24PM +0200, James Mastros wrote: > Change the procedure to require the bit after __DATA__ to match what > mysql gives you back? This is actually better then what you do anyway, > as what mysql gives you is significantly more detailed. We considered that, but, among

Re: Testing Database Schema

2004-07-19 Thread Tony Bowden
On Mon, Jul 19, 2004 at 03:22:05AM -0400, Michael G Schwern wrote: > > The two "best" ideas we've had so far are to either run the SQL in the > > code against a temporary database, and then compare both SHOW CREATE > > TABLE outputs, or to use something like SQL::Translator to convert both > > lots

Testing Database Schema

2004-07-18 Thread Tony Bowden
We have an in-house procedure that says that the SQL definition for a table should be included in the __DATA__ section of the class that represents it (we're using Class::DBI), and is to be treated as the definitive version of the schema. When the code gets deployed to a new server, we'd like to

Re: Looking for module dependency information

2004-07-11 Thread Tony Bowden
On Sun, Jul 11, 2004 at 12:46:01AM -0400, Michael G Schwern wrote: > Most modules now have a META.yml file which contains (amongst other things) > module dependency information. Simplest thing to do would be to make a > local miniCPAN mirror [1] and walk through the archive files [2] in > modules

Re: C/C++ White-Box Unit Testing and Test::More

2004-06-26 Thread Tony Bowden
On Fri, Jun 25, 2004 at 01:07:36PM -0400, Andrew Pimlott wrote: > You are also circumventing the isolation part of the xUnit model, > because you don't get setup/teardown for each test data. Possibly you > don't care about that in this case, but if you did, you wouldn't be able > to do the above,

Re: C/C++ White-Box Unit Testing and Test::More

2004-06-25 Thread Tony Bowden
On Fri, Jun 25, 2004 at 11:10:19AM -0400, Andrew Pimlott wrote: > I thought the "isolation" principle that people were talking about is > that before every test, a "setup" method is called, and after every test > a "teardown" is called, automatically by the test harness. This > seems to require on

Re: C/C++ White-Box Unit Testing and Test::More

2004-06-24 Thread Tony Bowden
On Thu, Jun 24, 2004 at 07:13:08PM -0400, Andrew Pimlott wrote: > But (I thought) the idea was that every test needs the same setup. If > they're all in one method, they won't get that. How's that? > Also, if you add lots of tests in a single method, (again as I understand) > they will stop a

Re: C/C++ White-Box Unit Testing and Test::More

2004-06-24 Thread Tony Bowden
On Thu, Jun 24, 2004 at 02:59:30PM -0400, Andrew Pimlott wrote: > I see this more as a limitation than a feature. It seems to mean that > - You need to use the same setup/teardown for all your tests. Those that need different things aren't testing the same thing and should move to a different cla

Removing Tests from Devel::Cover results

2004-06-17 Thread Tony Bowden
Is there any simple way to remove the test files themselves from the Devel::Cover results? i.e. just see the coverage analysis of the files being tested rather than all the t/* files as well? We want to monitor the total coverage over time on a project, and it would be nice to just grab that from

Re: GNU Aegis help wanted.

2004-02-11 Thread Tony Bowden
On Tue, Feb 10, 2004 at 06:41:00PM -0800, Michael G Schwern wrote: > Trouble is, I haven't used Aegis since 2001 and never in such a distributed > environment and never played with aedist or maintained the repository. > So I could use some help. At this point I'd just like to know who out > there

Re: JavaScript/Perl Question

2004-01-29 Thread Tony Bowden
On Tue, Jan 27, 2004 at 10:37:48AM -0500, Potozniak, Andrew wrote: > To make a long story short I can not get access to the source of the bottom > frame through JavaScript because of an access denied error. Has anyone else > ran into this problem or does anyone know of a solution to this problem?

Re: Hoplites: Watch for "each"

2003-11-03 Thread Tony Bowden
On Mon, Nov 03, 2003 at 02:06:01PM +, Tim Bunce wrote: > A separate issue with C is that code using it generally assumes > that the has itterator is at the start of the hash. If it's not > (because an C loop somewhere terminated early, for example) > then some items of the hash will be skipped.

Re: reducing size of the Devel::Cover html report

2003-10-29 Thread Tony Bowden
On Tue, Oct 28, 2003 at 07:36:03PM -0600, Michael Carman wrote: > > It is still huge ~870K but I could not find any easy way to remove further > > large chunks without changing the resulting page. > You won't find any more low hanging fruit. There's a lot of markup in building > that table, so it's

Test dying after running

2003-10-26 Thread Tony Bowden
In one of my local applications, the regression test has just started to fail with: dubious Test returned status 0 (wstat 14, 0xe) Constant subroutine __need_size_t redefined at /usr/lib/perl/5.8.0/stddef.ph line 147. after all the subtests completed successfully Bizarrely this only happens

Re: No more code coverage

2003-10-20 Thread Tony Bowden
On Mon, Oct 20, 2003 at 10:16:40PM +0200, Paul Johnson wrote: > I wrote "database" in quotes because currently we are talking about a > flat file, written using Data::Dumper and eval'd in. I have considered > other options - specifically YAML and Storable. I have found YAML to be > even slower an

Re: Devel::Cover and large test suites

2003-10-20 Thread Tony Bowden
On Mon, Oct 20, 2003 at 07:02:56PM +, [EMAIL PROTECTED] wrote: > Practically, the only way to do this is to save the results of each test > in a seperate cover_db and then selectively merge them to see whether or > not your coverage changed. Even then, finding the minimal set of tests > that

Re: Devel::Cover and large test suites

2003-10-20 Thread Tony Bowden
On Mon, Oct 20, 2003 at 10:47:02AM -0700, Ovid wrote: > The way we're doing tests is simply foolish and we could experience some significant > productivity > gains if we were to improve the test performance. Of course, I think it's fair to > point out that > much of the performance is due to a p

Re: Devel::Cover and large test suites

2003-10-20 Thread Tony Bowden
On Mon, Oct 20, 2003 at 12:10:33PM -0500, Andy Lester wrote: > One of the drums I beat heavily in my discussion of testing of large > projects is that you shouldn't care how long your tests take, so long as > they run within the smokebot window. This doesn't work so well with aegis, which has a me

Re: When Good Practices Go Bad (was: re: Devel::Cover...)

2003-10-20 Thread Tony Bowden
On Mon, Oct 20, 2003 at 10:25:17AM -0700, Bob Goolsby (bogoolsb) wrote: > There is another side to the "made-up" data issue. There are instances > where you legally can _not_ use live data. Consider a Hospital or > Insurance company, for example ... In Europe it's pretty much illegal for any c

Re: Devel::Cover and large test suites

2003-10-20 Thread Tony Bowden
On Mon, Oct 20, 2003 at 08:34:50AM -0700, Ovid wrote: > the suite of 15,000 tests takes about an hour to run. Devel::Cover issues aside, has anyone else looked at interesting ways of making test suites run faster? We insist on a full regression test on checkin, so having the test suite take a lon

Re: Phalanx & Devel::Cover

2003-10-12 Thread Tony Bowden
On Sun, Oct 12, 2003 at 01:08:39PM +, Mark Stosberg wrote: > A second sticking point could be that code is OS-specific, so it's not ever going > to get testing by just one build machine. And also, in the case of things like Class::DBI, have database specific code in them, that is tested, but c

Re: Test::More and 'deep' tests

2003-09-10 Thread Tony Bowden
On Wed, Sep 10, 2003 at 07:18:53AM -0400, [EMAIL PROTECTED] wrote: > > The fact the is_deeply currently looks inside them is a bug. > The AUTHOR INTENDED IT TO and so it is not a bug. The author's intent is entirely irrelevant to whether or not something is a bug. > and you want to ignore Michae

Re: Test::More and 'deep' tests

2003-09-10 Thread Tony Bowden
On Tue, Sep 09, 2003 at 08:50:06PM +0100, Fergal Daly wrote: > The docs for is() says it uses eq, is_deeply() says it looks inside, it > doesn't say "looks inside sometimes". It says it looks inside listrefs and hashrefs. That's all. Objects are not listrefs and hashrefs. They are sometimes mad

Re: maint @ 21116

2003-09-09 Thread Tony Bowden
On Tue, Sep 09, 2003 at 06:09:16PM +0100, Fergal Daly wrote: > But it doesn't fail, it never has failed and it was never intended to fail. > is_deeply is specifically for looking at and descending into the structure of > it's arguments, otherwise what's the point? Where's the "deep"ness? I don't

Re: Test::More and 'deep' tests

2003-09-09 Thread Tony Bowden
On Tue, Sep 09, 2003 at 05:49:47PM +0100, Fergal Daly wrote: > > my $str1 = MyString->new("foo", "bar"); > > my $str2 = MyOtherString->new("foo", "baz"); > > Now they _do_ differ by more than just class and it should be a fail, although > I must admit that even with the current is_deeply it will

Re: Test::More and 'deep' tests

2003-09-09 Thread Tony Bowden
On Tue, Sep 09, 2003 at 01:25:22PM +0100, Adrian Howard wrote: > >1) ok $str1 eq $str2; > >2) is $str1, $str2; > >3) is_deeply [$str1], [$str2]; > >4) is_deeply $str1, $str2; > All should pass as far as I am concerned. OK - what if it was slightly more complex: package MyString; use overload

Re: Test::More and 'deep' tests

2003-09-09 Thread Tony Bowden
On Tue, Sep 09, 2003 at 01:07:00PM +0100, Fergal Daly wrote: > The question needs changing. Both versions of is_deeply will give the same > answer on these tests. But do you agree that they should all pass? If so I've completely misunderstood your earlier arguments. They certainly aren't "deepl

Test::More and 'deep' tests

2003-09-09 Thread Tony Bowden
There's been a protracted discussion on the code-review mailing list about the behaviour of is_deeply in Test::More, which really belongs here or p5p. For the most part it was sparked by a disagreement about what should happen when comparing overloaded objects (but also then impacts on tied objec

This should never happen!

2003-08-25 Thread Tony Bowden
#!/usr/bin/perl -w use Test::More tests => 1; eval { die "Foo" }; ok $@, \$@; ... 1..1 Invalid value for shared scalar at /usr/local/share/perl/5.8.0/Test/Builder.pm line 319. WHOA! Somehow you got a different number of results than tests ran! This should never happen! Please contact the auth

Re: Existing books on testing?

2003-08-19 Thread Tony Bowden
On Tue, Aug 19, 2003 at 02:29:30PM +0100, Adrian Howard wrote: > >In _Software Craftsmanship_, Pete McBreen has high praise for: > > The Craft of Software Testing > >It's out of print and nearly impossible to find. I haven't read it > >yet, so I can't say whether it is as seminal as McBreen s

Re: Scrutinizing CPAN distributions (was Testing for valid path names...)

2003-08-19 Thread Tony Bowden
On Mon, Aug 18, 2003 at 08:13:58PM -0500, Ed Summers wrote: > > Upload a dist and let it be checked by a future version of Module::CPANTS. > That's actually kind of a neat idea. It makes me think how cool it would be if > Module::CPANTS installed a script which would do the same thing...from the >

Re: Scrutinizing CPAN distributions (was Testing for valid path names...)

2003-08-18 Thread Tony Bowden
On Mon, Aug 18, 2003 at 10:11:23PM +1000, Iain Truskett wrote: > > Sure, convince CPAN Testers to do this ;-) > I've been playing with Devel::Cover and think this is a good > idea. But damned if I know how to report the Devel::Cover > output in a useful way in an email. You can write your own repo

Re: Devel::Cover and Module::Build

2003-07-31 Thread Tony Bowden
On Thu, Jul 31, 2003 at 11:47:41AM +0100, Richard Clamp wrote: > > trying to move some of my stuff from MakeMaker to Build, and can't > > really work out how to pull my "make cover" equivalent across... > From Siesta::Build, Siesta's Module::Build subclass: > sub ACTION_cover { > my $self = shi

Devel::Cover and Module::Build

2003-07-31 Thread Tony Bowden
Has anyone added a "./Build cover" target for Module::Build yet? I'm trying to move some of my stuff from MakeMaker to Build, and can't really work out how to pull my "make cover" equivalent across... Thanks, Tony

Test::More isa Catholic?

2003-07-31 Thread Tony Bowden
>From Test::More docs: # XXX BAD! $pope->isa('Catholic') eq 1 is( $pope->isa('Catholic'), 1,'Is the Pope Catholic?' ); This does not check if "$pope-"isa('Catholic')> is true, it checks if it returns 1. Very different. Similar

Re: passing arguments to tests

2003-07-29 Thread Tony Bowden
On Thu, Jul 24, 2003 at 09:17:02AM -0400, Potozniak, Andrew wrote: > &Test::More::is(1,1,"One equals One!!"); > &Test::More::is(1,2,"Does one equal two??"); You probably don't want to be calling those with the & in front of them either as that'll make them bypass the prototype. And as the Test fu

Re: TODO tests for outstanding bugs?

2003-07-19 Thread Tony Bowden
On Fri, Jul 18, 2003 at 01:54:24PM -0700, chromatic wrote: > In general, the person who fixes the bug writes a regression test for > the bug. The pumpkings and other porters are really good about making > sure patches have tests. Yes, but I'm talking about outstanding bugs that don't have tests

TODO tests for outstanding bugs?

2003-07-18 Thread Tony Bowden
What's the current approach to turning perlbugs into tests? Should they be done as TODOs? Is there a distinct set of test files for them? etc? Can they use Test::More? etc. etc. etc. e.g. http://bugs6.perl.org/rt2/Ticket/Display.html?id=5430 can have a fairly simple test like: package

perlbug HOWTO

2003-07-18 Thread Tony Bowden
I've been chatting with Casey about how we should best be dealing with the perlbug RT interface - e.g. what to do when you come across a bug that's resolved, what the various statuses mean etc. There doesn't seem to be any documentation anywhere on this, and we thought the QA wiki might be a usef

Re: Graphically depicting coverage vs. test results

2002-12-16 Thread Tony Bowden
On Fri, Dec 13, 2002 at 12:16:53AM +0100, Paul Johnson wrote: > I also had thoughts along the lines of all tests not being equal. > Generally the earlier a test is run, the more important it is. This isn't necessarily true. Test::Class, for example, runs tests in alphabetical order ... Tony

Re: Binary-wise is()

2002-11-28 Thread Tony Bowden
On Wed, Nov 27, 2002 at 10:35:33PM +, Mark Fowler wrote: > See also Acme::Test::Buffy (lame example testing module), and > Test::Builder::Tester for help testing Test::Binary. We found that for testing Test::Builder objects, it was handy to do things like: *orig_ok = \&Test::Builder::ok;

Re: Test::Class - comments wanted

2002-10-15 Thread Tony Bowden
On Mon, Oct 14, 2002 at 05:46:38PM -0400, Michael G Schwern wrote: > The reason I went with no_plan in Test::Inline was that unlike a dedicated > test script, a T::I test is cobbled together from a series of seperated > blocks of tests and it's more difficult than usual to count them all and add >

Re: Test::Class - comments wanted

2002-10-13 Thread Tony Bowden
On Sun, Oct 13, 2002 at 01:40:39AM +0100, Adrian Howard wrote: > - In hindsight, having a 1 test default was probably a hangover from > JUnit thinking... I never really considered any alternatives. I have to say I like the way this currently is... most of my test methods only have one test .

Re: Test::Class weirdness

2002-10-11 Thread Tony Bowden
On Thu, Oct 10, 2002 at 09:42:05PM +0100, Adrian Howard wrote: > If you stick your loop inside a BEGIN {} block I think you'll find that it > works as you expect. > The attribute handler in Test::Class is set to run as a CHECK block (the > default provided by Attribute::Handlers). Since you don'

Test::Class weirdness

2002-10-10 Thread Tony Bowden
Test::Class helpfully has a shortcut to allow you to run the tests from multiple classes as if they were one test: If you want to run multiple test objects in a single script you can pass "runtests" a list of test objects ... Since you can pass "runtests" class names instead of objects th

Re: Alternative code review ideas?

2002-01-29 Thread Tony Bowden
On Tue, Jan 29, 2002 at 10:23:45AM -0500, Shane Landrum wrote: > > When we first introduced this most of the reviews were for very > > basic things: you forgot strict or warnings. You didn't untaint that > > variable. You're not following our coding standards there. > Ah, ok. So were you just grep

Re: Alternative code review ideas?

2002-01-29 Thread Tony Bowden
> Mandatory, Managed Code Reviews is basically where each individual > change is reviewed by another member of the team before being committed. > We used it at Blackstar (AFAIK they still do, Tony?) I believe so, but haven't been there for over 6 months now, so I'm not sure ... > So if the m

Re: Essential Modules

2001-09-29 Thread Tony Bowden
On Sat, Sep 29, 2001 at 01:39:51PM -0400, Michael G Schwern wrote: > Given Wiki's security model (or lack thereof) that is kinda silly. It's very deliberate for the Wiki to have approximately zero security... > I'm poking around a bit at other wikis, maybe TWiki if they didn't > have such an obn

CPAN::Test

2001-09-24 Thread Tony Bowden
I've raised this problem with cpan-testers before, to exactly zero response, but if we're going to start blasting them with lots and lots of automated messages, it's probably time to again: cpan-testers does not currently list a PASS/FAIL against a given version of perl on search.cpan.org - it o

Re: ANNOUNCE: Pod::Coverage 0.06 (with discourse Re: ANNOUNCE: Pod::Coverage 0.02 release)

2001-09-03 Thread Tony Bowden
ld be in a distinct method. Never make methods do too much, especially when you're expecting people to subclass. Tony -- ------ Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/ the woods are lovely, dark, and deep

Re: ANNOUNCE: Pod::Coverage 0.02 release

2001-08-31 Thread Tony Bowden
d2 get_foo / set_foo Accessor and mutator for foo. Tony -- ------ Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/ make me laugh make me cry enrage me don't try to disengage me --

Re: ANNOUNCE: Pod::Coverage 0.02 release

2001-08-28 Thread Tony Bowden
(ok, I know there's 0.04 now, but I've deleted that announcement) The thing I'd *really* like to see in this now is the ability to run it on arbitrary code - not just installed modules. i.e. I want to add it to a 'build' process, that will automatically reject code that isn't fully documented -

Re: ANNOUNCE: Pod::Coverage

2001-08-27 Thread Tony Bowden
llow you to set up your own local rules for this :) Tony -- -- Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/ all history is too small for even me; for me and you,exceedingly too small --

Re: Test::More::is() undef ?

2001-08-26 Thread Tony Bowden
$ok = @_ == 3 ? ok($test, $name) : ok($test); Tony -- ------ Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/ may my mind stroll about hungry and fearless and thirsty and supple --

Re: core tests

2001-08-25 Thread Tony Bowden
On Mon, Aug 20, 2001 at 05:30:26PM -0400, Michael G Schwern wrote: > On Mon, Aug 20, 2001 at 02:16:37AM +0100, Tony Bowden wrote: > > In rewriting core tests with Test::More, where can we start? > > Everything in lib/. For t/ you'll have to use your judgement. I > adde

core tests

2001-08-19 Thread Tony Bowden
Tony -- ------ Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/ make me laugh make me cry enrage me don't try to disengage me --

Maintainability Index

2001-06-05 Thread Tony Bowden
ei.cmu.edu/activities/str/descriptions/mitmpm.html) This should be fairly simple to implement (I'll leave that as an exercise for the reader), and could probably be used as a starting point for CPANTS. Tony -- ------

Re: Appointing an interim comissioner

2000-12-11 Thread Tony Bowden
to get something up and running soon. Tony -- --------- Tony Bowden | [EMAIL PROTECTED] http://www.blackstar.co.uk/ Black Star |The UK's Biggest Video & DVD store * Free Postage Worldwide -

Re: Appointing an interim comissioner

2000-12-11 Thread Tony Bowden
eeds to be an election or something like that, I will > volunteer to count the votes. ... Tony -- ----- Tony Bowden | Belfast, NI | [EMAIL PROTECTED] | www.tmtm.com | www.blackstar.co.uk fried fried tickin