Re: How to force tests to issue "NA" reports?

2005-04-08 Thread Chris Dolan
t; http://module-build.sourceforge.net/META-spec-new.html#recommends Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-la

Re: Kwalitee and Perl::Critic

2005-10-05 Thread Chris Dolan
uld be very hard to judge without parsing the module. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-landscape.com/) and part

Re: Kwalitee and Perl::Critic

2005-10-05 Thread Chris Dolan
nd so I’ve got about 20 file-scoped lexical hashes. But that doesn’t at all mean the code is really full of globals. My fault for sloppy terminology -- I did not mean to include lexicals. I meant 'use vars qw(...)' and 'our ...' variables specifically. Chris -- Chris

Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-10-31 Thread Chris Dolan
opyright" in README, *pm and *.pod. 2) has_meta_yml_license -- check for a META.yml field named "license". Module::Build supports this. These tests should not care which license is claimed, just that there is a license present. Chris -- Chris Dolan, Software Developer,

Re: Devel::Cover not DWIMming on upgraded Perl -- but problem solved

2005-11-02 Thread Chris Dolan
l UNINSTALL=1'.) This solved the problem. The message described above went away, and 'cover' reported only the results for the module under development. Jim Keenan -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St

Re: Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-11-02 Thread Chris Dolan
On Nov 2, 2005, at 10:19 AM, David Landgren wrote: Chris Dolan wrote: In the last year as a Fink maintainer (Mac OS X debian-like package manager), I've come across a couple CPAN modules that have no license information at all. It's very frustrating. I've submitted RT

Re: Proposed Kwalitee tests: has_license and/or has_meta_yml_license

2005-11-02 Thread Chris Dolan
is P.S. On a marginally-related note, I released Module::License::Report yesterday. Unfortunately, it's not immediately useful for Kwalitee because it eval()s code from Makefile.PL and/or Build.PL, and makes use of Module::Depends::Intrusive which does more of the same. -- Chris Dol

Private tests

2005-11-14 Thread Chris Dolan
ositive and negative feedback is very welcome! Chris -- Chris Dolan, Software Developer, www.chrisdolan.net Public key: http://www.chrisdolan.net/public.key

Private tests

2005-11-14 Thread Chris Dolan
le system where authors publish the results of private tests with their distributions as a trust- based kwalitee system. http://www.chrisdolan.net/talk/index.php/2005/11/14/private- regression-tests/ Both positive and negative feedback is very welcome! Chris -- Chris Dolan, Software De

Re: Private tests

2005-11-15 Thread Chris Dolan
implicit request for help from other developers. Chris On Nov 15, 2005, at 4:12 AM, Tels wrote: -BEGIN PGP SIGNED MESSAGE- Moin, On Monday 14 November 2005 18:21, Chris Dolan wrote: Hello all, I've just published an article about public vs. private regression tests. I

Re: Private tests

2005-11-15 Thread Chris Dolan
has a recursive mode for finding tests. It's set by the author, so you should be safe in this case, but it's a point worth remembering. *light bulb* And in fact, that could be the run-time trigger. Hmmm Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 60

Re: How to use Devel::Cover?

2005-12-26 Thread Chris Dolan
uot; and then open cover_db/coverage.html in your browser. If you are using a version of M::B older than 0.27_02, you may wish to manually delete the whole cover_db directory between runs. Later M::B versions auto- detect when cover_db files are out of date. Chris -- Chris Dolan, Softwa

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Chris Dolan
ckage Manager (PPM). http://aspn.activestate.com/ASPN/Downloads/ActivePerl/PPM/ Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creato

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Chris Dolan
On Jan 27, 2006, at 12:01 PM, Tels wrote: On Friday 27 January 2006 18:48, Chris Dolan wrote: On Jan 27, 2006, at 11:23 AM, Tels wrote: Basically something like CPAN, but with much less network traffic and much less hassle for a user. Bonus points if it gives you stuff pre- compiled for

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-27 Thread Chris Dolan
On Jan 27, 2006, at 12:30 PM, Tyler MacDonald wrote: Chris Dolan <[EMAIL PROTECTED]> wrote: * for windows only * only includes Foo-Bar, but not it's dependecies It will auto-install dependencies just like CPAN, I believe. And, yes, it's currently Windows-only. Didn't y

Re: Dependency trees was: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-28 Thread Chris Dolan
odgate.com/tels.asc or per email. This email violates EU patent EP0394160: [ ## 66% ] -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho A

Re: Kwalitee in your dependencies (was CPAN Upload: etc etc)

2006-01-30 Thread Chris Dolan
used. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.media-landscape.com/) and partne

Re: YAML and Makefile.PL (was various topics)

2006-01-31 Thread Chris Dolan
aries correctly, M::B just entered core in 5.9.3. There has long been hope that M::B and CPANPLUS will be in core for 5.10. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDola

Re: YAML and Makefile.PL (was various topics)

2006-01-31 Thread Chris Dolan
do is have Andreas or Jos increment the CPAN.pm/CPANPLUS.pm version and just about everyone would be prompted to upgrade the next time they tried to install something. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 5

Re: TODO test paradox: better TODO test management?

2006-01-31 Thread Chris Dolan
both those passing and those failing. You could try: make test verbose=1 > out and then search the output for "TODO" Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net

Re: [Module::Build] [RFC] author tests

2006-02-02 Thread Chris Dolan
On Feb 1, 2006, at 10:35 PM, Tyler MacDonald wrote: Chris Dolan <[EMAIL PROTECTED]> wrote: There is a class of tests that module authors perform that end users are not expected to run. For example code coverage tests, spelling tests, coding style tests, etc. These tests are

Re: [Module::Build] [RFC] author tests

2006-02-02 Thread Chris Dolan
test". Presently, I simply include them all in my MANIFEST.SKIP so they are not included in my uploaded package. That's why I call these "author tests" and not "release tests" or "exhaustive tests". Chris -- Chris Dolan, Software Developer, Clotho Advanced

Re: Default tests, beta testing, etc.

2006-02-05 Thread Chris Dolan
be a good way to motivate new authors to put more attention into testing. I recommend Test::Distribution for this type of "default" tests. It looks for .pm files in blib and performs a bunch of tests on them -- POD, compile, version, etc. [snip] Chris -- Chris Dolan, Sof

Re: Default tests, beta testing, etc.

2006-02-06 Thread Chris Dolan
t makes sure it still works as Perl is upgraded and your dependencies evolve. Since I've got a terribly bad habit of inventing things that have existing names, I'm sure someone will correct my on the two above namings. I think those are great names. Very clear. Chris -- Chris

Surprising use_ok false positive

2006-03-05 Thread Chris Dolan
e this example is contrived, the "eval { require ... }" idiom is used often in the wild, so this is not a wholly unrealistic scenario. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: ht

Re: Surprising use_ok false positive

2006-03-05 Thread Chris Dolan
On Mar 5, 2006, at 3:55 PM, David Wheeler wrote: On Mar 5, 2006, at 13:52, Chris Dolan wrote: Advice? While this example is contrived, the "eval { require ... }" idiom is used often in the wild, so this is not a wholly unrealistic scenario. Of course it should be eval { r

Re: Best Practice for testing compilation of scripts

2006-03-15 Thread Chris Dolan
lcome). However, Adam Kennedy wrote one: http://search.cpan.org/src/ADAMK/ThreatNet-Bot-AmmoBot-0.10/t/ 01_compile.t That function should probably be changed to use FindBin instead of updir() calls. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294

Re: Upgrading core modules on Windows

2006-03-16 Thread Chris Dolan
this, although that would be a huge addition to the dependency list. With PAR, you could employ a whole separate .exe and probably even do the core updates. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard

Re: [PATCH] Forking tests with Test::More

2006-03-28 Thread Chris Dolan
ication for adding this feature to Test::More itself. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Softw

Re: Module requirements

2006-04-05 Thread Chris Dolan
nd was first released with perl 5 Memoize was first released with perl 5.007003 Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc.

Re: CPANTS is not a game.

2006-05-23 Thread Chris Dolan
I think that's a price worth paying -- at least until we rewrite the metric to actually test POD coverage (which is a decent proxy for POD quality) instead of just checking for the presence of a t/ pod_coverage.t file (which is a weak proxy for POD quality, but dramatically easier to measure).

Re: CPANTS is not a game.

2006-05-23 Thread Chris Dolan
like incorporating cpanratings into CPANTS (I do NOT advocate that!) or getting download stats from CPAN (never gonna happen) or adding voluntary "Someone installed module X" pings from CPAN.pm. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294

Re: CPANTS is not a game.

2006-05-23 Thread Chris Dolan
On May 23, 2006, at 10:34 AM, David Golden wrote: Chris Dolan wrote: ... just checking for the presence of a t/pod_coverage.t file (which is a weak proxy for POD quality, but dramatically easier to measure). It doesn't check for the existence of a t/pod_coverage.t file. It checks

Re: Continuous testing tools

2006-06-08 Thread Chris Dolan
the server. Is there any interest in such a package? Best wishes, Tels That sounds very similar to Adam Kennedy's PITA project. Yes, there is great interest! Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI

Re: TAP Grammar

2006-07-05 Thread Chris Dolan
t the first line of the Makefile to specify the path to PARROT_DIR and run "make". My tests found a few bugs in Jerry's grammar. My fixed version of that grammar is here: https://svn.clotho.com/public/parrot-experiments/TAP/grammars/TAP.pg Chris -- Chris Dolan, Software

Re: Old and broken versions of Module::Install

2006-07-06 Thread Chris Dolan
using out-of-date Module::Build::Compat boilerplate). If the CPANTS "game" gets any M::I-using authors to upgrade, then it has served its purpose. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 537

Re: Old and broken versions of Module::Install

2006-07-06 Thread Chris Dolan
http://plasmasturm.org/> IMHO it likely counts as a CPANTS pass for now, but it may be a fail in the future unless you update the Makefile.PL with a newer M::B as bugs are discovered. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main S

Re: Old and broken versions of Module::Install

2006-07-06 Thread Chris Dolan
On Jul 6, 2006, at 10:18 AM, A. Pagaltzis wrote: * Chris Dolan <[EMAIL PROTECTED]> [2006-07-06 16:30]: IMHO it likely counts as a CPANTS pass for now, but it may be a fail in the future unless you update the Makefile.PL with a newer M::B as bugs are discovered. To make sure we’re on th

Re: [Slightly OT] Understanding Software Licences [was Re: Proposal Suggestion - Test::Run [was Re: [Israel.pm] Fwd: Call for proposals -- Perl Foundation Grants]]

2006-07-07 Thread Chris Dolan
ird parties with less dedication to Perl, thereby decreasing the attractiveness of the language. After all, software engineering is largely about reducing the exposed complexity of a project. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 143

Re: Time for a Revolution

2006-07-14 Thread Chris Dolan
u thinking?) Whoa, this is becoming an unexpectedly educational thread... Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Re: Dependency trees

2006-07-21 Thread Chris Dolan
arser perl HTML-Tagset perl HTTP-Server-Simple perl Test-Exception perl Test-WWW-Mechanize perl URI perl WWW-Mechanize perl libwww-perl Something like that could be adapted to your purpose, maybe. Chris -- Chris Dolan, Software Developer, Clot

Re: Installing Tests

2006-09-11 Thread Chris Dolan
talled copy of Foo itself. Perhaps that can be accomplished by simply deleting lib and blib in Foo-1.00 before running tests? Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisD

Re: TAPx::Parser 0.21

2006-09-11 Thread Chris Dolan
> 'Inf'; use LWP::Simple qw(get); while (1) { ok(get('http://www.example.com/')); sleep 60; } or is it something else entirely? Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 5

Re: post-YAPC::Europe CPANTS news

2006-09-12 Thread Chris Dolan
y of CPAN will improve. And the more closely the metrics match our real quality goals, the bigger the quality delta we will achieve. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdola

Re: post-YAPC::Europe CPANTS news

2006-09-12 Thread Chris Dolan
-test skipping works well, and is more appropriate for modules which may not have a publicly-exposed revision control system. *shrug* I could probably be convinced that your approach is better. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025

Re: Installing Tests

2006-09-12 Thread Chris Dolan
at you're better off starting with a clean tarball as if it's a fresh install. The only reason I can think of for the post-make argument is to preserve choices made during Makefile.PL, like Module::Install optional prereqs. Chris -- Chris Dolan, Software Developer, Clotho Ad

CPANTS quality brainstorming

2006-09-12 Thread Chris Dolan
x.php/CPANTS_Quality_Goals I'd be thrilled if others would look at what I wrote and improve it or tear it apart. :-) I hope this isn't too much wheel re-invention... Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison

Re: post-YAPC::Europe CPANTS news

2006-09-12 Thread Chris Dolan
we have is what gets uploaded. [...] That's a very good point. I'm convinced. To restate what you've said, CPAN is a better long-term software repository than any other system for open source Perl programmers. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc.

Module license determination (was Re: CPANTS quality brainstorming)

2006-09-13 Thread Chris Dolan
README, meta.yml, Build.PL, Makefile.PL, LICENSE/COPYING/COPYRIGHT, dslip, etc. It requires CPANPLUS, so it might not be directly suitable for CPANTS, but there is some stuff in there that could help. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025,

Re: CPANTS quality brainstorming

2006-09-14 Thread Chris Dolan
* Advocacy to get popular modules to state their licenses more prominently * Advocacy to get modules with inconsistently stated licenses (e.g. DSLIP vs. POD) corrected Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 537

Re: New TAP Grammar

2006-09-14 Thread Chris Dolan
\d*) ]? ## assumes a single space, not \h+ \h* ? \h* ? \n } token status { <'not '>? <'ok'> } token description { <-[#\n]>+ } The description can't start with a number if there is a test number: token descrip

Re: Terrible diagnostic failure

2006-09-18 Thread Chris Dolan
s in the Perl core. http://search.cpan.org/perldoc?IPC::Open3 IPC::Run3 is supposed to be good on Windows, but I haven't tried it enough. http://search.cpan.org/perldoc?IPC::Run3 Finally, you can try duplicating the STDOUT filehandle and saving it in STDERR. Does this work as expected

Re: A short rant on the purpose of the CPAN install chain.

2006-09-19 Thread Chris Dolan
g * Every time you get a valid bug report, write a test that reproduces the bug. and of course * Read "Perl Testing: A Developer's Notebook" for more ideas http://www.oreilly.com/catalog/perltestingadn/ Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-

Re: Testing for test labels

2006-09-24 Thread Chris Dolan
) = @_; my $includes = $doc->find('PPI::Statement::Include'); return if !$includes; return any { $_->module() eq 'Test::More' } @{ $includes }; } == -- Chris Dolan, Software Developer, Clotho Advanced Media In

Re: Testing for test labels

2006-09-24 Thread Chris Dolan
"svn add" first... Fixed, should work now. :-) Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Re: Testing for test labels

2006-09-25 Thread Chris Dolan
@files = all_perl_files('blib'), grep {m/\.t\z/} read_dir('t'); plan tests => scalar @files; for my $file (@files) { critic_ok( $file, $file ); } Of course, you could easily replace that use of File::Slurp with opendir,readdir,closedir. Chris -- Chris Dolan,

Re: Suggestions for cpantesters

2006-10-02 Thread Chris Dolan
modules. Via that feed, I noticed this morning that your smoke machine has a problem with my FLV::Info module (now fixed, thanks for the report!) Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http

Re: Testing for test labels

2006-10-02 Thread Chris Dolan
g::RequireTestLabels] modules = My::Test::SubClass Some::Other::Module Test::More is always implicitly included. Are there any common Test::More subclasses that I should add to the default list? Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435

Proposal for author test envvar standard (was Re: Suggestions for cpantesters)

2006-10-03 Thread Chris Dolan
HOR_TEST=1 and run through all of the optional tests on all installed CPAN modules. This should not be set on automated/smoke systems because an author test is one which is only needs to succeed (or perhaps only *can* succeed) on a developer's machine. Chris -- Chris Dolan, Software Devel

Re: Proposal for author test envvar standard (was Re: Suggestionsfor cpantesters)

2006-10-03 Thread Chris Dolan
On Oct 3, 2006, at 10:04 PM, Adam Kennedy wrote: Christopher H. Laco wrote: Chris Dolan wrote: I've seen discussion of the right env var name has been batted around here and on the Module::Build list a couple of times without resolution or blessing. So, I hereby propose n

Re: Proposal for author test envvar standard (was Re: Suggestions for cpantesters)

2006-10-03 Thread Chris Dolan
e. It should be easy for a 3rd-party developer to glance at the .t file and figure out which envvar to use to turn on the author tests. I think your abstraction is too obscure. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main S

Re: Proposal for author test envvar standard (was Re: Suggestionsfor cpantesters)

2006-10-03 Thread Chris Dolan
;d be much happier with a term that points at the development or authoring process. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. -

Re: AnnoCPAN Doc Patch Maker

2006-10-04 Thread Chris Dolan
s what we use in Perl::Critic: http://perlcritic.tigris.org/source/browse/*checkout*/perlcritic/ trunk/Perl-Critic/t/97_spelling.t?content-type=text/plain Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http

Re: Pod Spelling

2006-10-04 Thread Chris Dolan
der that large or not. Perl::Critic currently has 29 stopwords not included in aspell-en. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Med

Re: AnnoCPAN Doc Patch Maker

2006-10-05 Thread Chris Dolan
ot;). A future version of this should try to use Pod::Parser like Pod::Spell does. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media,

Re: New Kwalitee Metric?

2006-10-24 Thread Chris Dolan
ext if ($file =~ /^(?:\d+[_-]?)?pod[_-]?coverage\.t$/); # more boilerplate to be added later... return 1; } return 0; } That said, I'm not a Module::CPANTS developer, so I'm not going to dictate priorities. The META.yml prereqs check sounds great. Chris -- Chri

Re: New Kwalitee Metric?

2006-10-25 Thread Chris Dolan
ext if ($file =~ /^(?:\d+[_-]?)?pod[_-]?coverage\.t$/); # more boilerplate to be added later... return 1; } return 0; } That said, I'm not a Module::CPANTS developer, so I'm not going to dictate priorities. The META.yml prereqs check sounds great. Chris -- Chri

Re: Sparse Test Output

2006-10-26 Thread Chris Dolan
ed the crash. In even scarier terms, would you prefer to see an RT or smoke report about your module with the former or the latter detail? Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdol

Re: Test.pm does not return false on failed tests.

2006-10-30 Thread Chris Dolan
On Oct 30, 2006, at 11:34 AM, Michael G Schwern wrote: The solution is to get authors to stop using test.pl. That sounds like an important Kwalitee test to me! Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI

Re: Test.pm does not return false on failed tests.

2006-10-30 Thread Chris Dolan
lution simply invites unwelcome breakage. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://w

Re: recursive_test_files in Module::Build and in ExtUtils::MakeMaker

2006-11-02 Thread Chris Dolan
ature. What should you do? You're not going to like this answer: Don't use recursive test directories. :-) Chris -- Chris Dolan, Software Developer, http://www.chrisdolan.net/ Public key: http://www.chrisdolan.net/public.key vCard: http://www.chrisdolan.net/ChrisDolan.vcf

Re: CPANTS and META.yml

2006-11-03 Thread Chris Dolan
hange. We might as well encourage people to change to the current spec. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - C

Re: P::C or PPI bug?

2006-11-07 Thread Chris Dolan
he latest PPI developer release v1.199_xx. The array constructor stuff should be perfect. The hash constructor parsing still needs some work to further disambiguate it from anonymous blocks. (like map, grep, eval, sort, etc) It never hit RT because I just fixed it myself instead of re

Re: P::C or PPI bug?

2006-11-08 Thread Chris Dolan
lists/listinfo/parseperl-discuss Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media, Inc. - Creators of MediaLandscape Software (http://www.

Re: P::C or PPI bug?

2006-11-08 Thread Chris Dolan
t the core Perl docs (or source code!), then it should be rewritten to be less ambiguous. Chris -- Chris Dolan, Software Developer, Clotho Advanced Media Inc. 608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703 vCard: http://www.chrisdolan.net/ChrisDolan.vcf Clotho Advanced Media

Re: Perl::Metrics::Simple 0.30

2006-12-15 Thread Chris Dolan
7;t know how to handle refs to $type"); 2) return $total So I actually count a complexity of 7 (num decision points + num endpoints + 1) if I've understood the wiki definition correctly. http://en.wikipedia.org/wiki/Cyclomatic_complexity Chris -- Chris Dolan, Software Developer, C

Re: Perl::Metrics::Simple 0.30

2006-12-15 Thread Chris Dolan
On Dec 15, 2006, at 10:22 PM, Matisse Enzer wrote: On Dec 15, 2006, at 7:52 AM, Chris Dolan wrote: That can't be right. Negation does not contribute to complexity. I think it is fair to say, that to a human, negation *can* increase complexity: if ( $foo ) { # do some

Re: Measuring Complexity (was Re: Perl::Metrics::Simple 0.30)

2006-12-16 Thread Chris Dolan
On Dec 16, 2006, at 12:07 PM, Matisse Enzer wrote: On Dec 15, 2006, at 10:13 PM, Chris Dolan wrote: OK, I see. Perhaps I was distracted from your main point by mention of cyclomatic complexity, which has a rather specific definition. Mea culpa. In the next release I will change the

Re: Measuring Complexity (was Re: Perl::Metrics::Simple 0.30)

2006-12-19 Thread Chris Dolan
t there is some other thing going on with ($a == $b) that perhaps, should be considered some other kind of complexity. You're likely biting off more than you can chew. I recommend that you take a lesson from Kwalitee and focus on implementing easily- defined metrics first. Chris

Re: Uncoverable syntax (was Re: testing module loading output and testing under the debugger)

2006-12-20 Thread Chris Dolan
## no critic(StringyEval) eval $str; ## use critic Scoped style: sub { ## no critic(StringyEval) eval $str; } eval $str; # triggers a violation... The scoped style is possible because we are using PPI to parse the code into a DOM. Chris -- Chris Dolan, Software Developer, h

Re: Test::More and Fatal

2007-01-24 Thread Chris Dolan
_ok('http://localhost/', 'get home page') || bail; $mech->content_contains('Home'); ... In this example, failing to fetch HTML is clearly bad news for all subsequent tests and the C< || bail> is good self-documentation. Other tests are less c

Re: Test::More and Fatal

2007-01-24 Thread Chris Dolan
On Jan 24, 2007, at 1:25 PM, Nik Clayton wrote: Chris Dolan wrote: I don't like that very much. The implicit die() on test functions will probably confuse subsequent readers of the code. # Cause the listed functions to die on error use Fatal qw(...); Furthermore, I cannot be

Re: Parallelizing TAPx::Harness?

2007-02-05 Thread Chris Dolan
tree of files per-test and wipe clean upon exit. It seems to me that writing temp files to the build dir should be discouraged. Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: Parallelizing TAPx::Harness?

2007-02-05 Thread Chris Dolan
eforge.net/ -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: Generating test data and testing it

2007-02-20 Thread Chris Dolan
:W::M code, but it won't make anybody's head explode trying to read the test code a couple years down the road. Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: a safer way to use no_plan?

2007-03-04 Thread Chris Dolan
... run basic tests ... for my $pdf_file (@test_docs) { ... run per-doc tests ... } Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: What was I thinking?

2007-03-28 Thread Chris Dolan
However, that would alter the last upload date to 2007. I often use the date of last upload as a clue when searching for CPAN modules. *Usually* the stuff updated in 2006/2007 is better than the stuff from 2001. Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public ke

Re: Custom Test::More problem

2007-03-28 Thread Chris Dolan
at with Test::More it's a coderef, but not with My::Test::More. My wild guess is that something in Exporter::Heavy up in My::Test::More's ISA chain is blowing away the __DIE__ handler after it gets set in Test::Builder. Chris -- Chris Dolan, Equilibrious LLC, http:/

Re: Passing parameters to test scripts

2007-04-04 Thread Chris Dolan
he student portion of the student/instructor Catalyst web site I'm building. Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: Test::Kwalitee

2007-05-08 Thread Chris Dolan
anged since then. So, Test::Kwalitee either needs a quick patch to catch up to now or an overhaul to auto-detect the kwalitee tests from M::C::K. Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: CPAN testers generates Makefile.PL without prerequisites

2007-05-21 Thread Chris Dolan
reqs turned into mandatory ones, and any dynamic config you do in Build.PL becomes static. However, if you make good default choices in Build.PL that may just mean that the Makefile.PL-using end user installs more of CPAN than they really need, which is definitely a lesser evil than a bro

Re: CPANTS reports in e-mail

2007-05-31 Thread Chris Dolan
list ("yaml" is already taken) Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: Pod::Critic?

2007-06-06 Thread Chris Dolan
.cpan.org/dist/Perl-Critic/lib/Perl/Critic/DEVELOPER.pod Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.key vCard: http://chrisdolan.net/ChrisDolan.vcf

Re: Code coverage awesomeness

2007-06-16 Thread Chris Dolan
Josh, I'm not sure that I understand this message (probably because I'm not a perl guts hacker), but I am intrigued by your enthusiasm. I downloaded and read the Runops::Trace code -- it's always a little surprising and interesting to me to see which parts of the Perl internals are malle

Re: Code coverage awesomeness

2007-06-16 Thread Chris Dolan
On Jun 17, 2007, at 12:56 AM, Joshua ben Jore wrote: On 6/16/07, Chris Dolan <[EMAIL PROTECTED]> wrote: Josh, Josh, can you explain to us in a little more depth what this means? Are you showing that certain input values follow the same path through the code? Yes. It looks like th

Re: faking time() across processes for testing

2007-06-28 Thread Chris Dolan
re.pm http://search.cpan.org/~nwclark/perl-5.8.8/pod/ perlthrtut.pod#Synchronization_and_control And just to tease Josh a little: http://www.everything2.com/index.pl?node_id=987739 Chris -- Chris Dolan, Equilibrious LLC, http://equilibrious.net/ Public key: http://chrisdolan.net/public.ke

Re: [ANNOUNCE] Test::Builder/More/Simple 0.72

2007-09-26 Thread Chris Dolan
On Sep 22, 2007, at 9:06 AM, Salve J Nilsen wrote: - Set up some kind of syndication feed [RSS, Atom] [somewhere sensible] where one can read which distributions currently have a "pre-release" status. The feed might be called "NEED TESTING" or something like that. Make this feed visible on

Re: Perl 5 Wiki Improvement Drive: Recommended Modules For Testing

2007-09-26 Thread Chris Dolan
On Sep 24, 2007, at 4:15 AM, David Cantrell wrote: Andy Lester wrote: On Fri, Sep 21, 2007 at 11:23:21AM +0100, David Cantrell ([EMAIL PROTECTED]) wrote: It appears that I can't make any changes without registering for yet another bloody account. I already have too many. You have a limit?

Re: Overriding CORE::GLOBAL::print

2007-10-28 Thread Chris Dolan
On Oct 28, 2007, at 9:31 AM, A. Pagaltzis wrote: * Matisse Enzer <[EMAIL PROTECTED]> [2007-10-27 21:20]: I suppose we need to bite the bullet and just find and replace all the calls to 'print' with something else. Select a tied filehandle? Not efficient… but quick to add. That's a popular t

Re: Overriding CORE::GLOBAL::print

2007-10-28 Thread Chris Dolan
On Oct 28, 2007, at 6:12 PM, Scott McWhirter wrote: You could use an IO::Handle based object wrapped around STDOUT/STDERR. It doesn't really matter whether it's a glob filehandle or an IO::Handle or a tied handle. The important part is the select() which lets you avoid changing each and e

  1   2   >