Using CPAN or CPANPLUS to install a list of modules (even if already installed) into a specified location

2011-04-28 Thread Matisse Enzer
Is there an existing way to do the equivalent of: cpanp --prefix=/tmp/MyCollection --ignore-already-installed Module::One Module::Two ... The idea being that even if Module::One is already installed somewhere in @INC that i still end up with something like this: /tmp/MyCollection/li

Using CPAN or CPANPLUS to install a list of modules (even if already installed) into a specified location

2011-04-28 Thread Matisse Enzer
Is there an existing way to do the equivalent of: cpanp --prefix=/tmp/MyCollection --ignore-already-installed Module::One Module::Two ... The idea being that even if Module::One is already installed somewhere in @INC that i still end up with something like this: -M

Re: Running a CPAN install to a non-standard directory, whilst ignoring modules installed in privlib and extraslib

2010-08-24 Thread Matisse Enzer
2010, at 10:52 AM, Michael Kiwala wrote: > I think local::lib and the lib::core::only solve this problem. Have > you looked into that? > > On Mon, Aug 23, 2010 at 11:20 AM, Matisse Enzer wrote: >> Hi folks, >> >> I'm revisiting a problem from a couple year

Running a CPAN install to a non-standard directory, whilst ignoring modules installed in privlib and extraslib

2010-08-23 Thread Matisse Enzer
Hi folks, I'm revisiting a problem from a couple years back in hopes that a newer, better solution has or can be created: I want to automate the process of building a collection of CPAN modules into a non-standard directory (so that I can distribute the built collection as part of another piec

Re: Baffling cluelessness

2008-06-03 Thread Matisse Enzer
On May 26, 2008, at 4:00 PM, Andy Lester wrote: http://binstock.blogspot.com/2008/05/is-popularity-of-unit-tests-waning.html FYI: new book on unit testing: xUnit Test Patterns: Refactoring Test Code http://www.amazon.com/dp/0131495054/

Re: Baffling cluelessness

2008-05-31 Thread Matisse Enzer
On May 26, 2008, at 4:00 PM, Andy Lester wrote: http://binstock.blogspot.com/2008/05/is-popularity-of-unit-tests-waning.html Maybe he can't look beyond Java? I think that's true of the author of that blog post - some of the comments go further, one mentions Python.

Re: Why should package declaration match filename?

2008-03-15 Thread Matisse Enzer
; is a "good point." The issue on the table is WHY "everyone else does it." My colleagues asked an honest question, and I want to give them the most complete answer I can. -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Why should package declaration match filename?

2008-03-15 Thread Matisse Enzer
On Mar 15, 2008, at 6:45 AM, David Cantrell wrote: On Fri, Mar 14, 2008 at 12:20:40PM -0700, Matisse Enzer wrote: What are other good reasons to have package declarations match file paths? Because it's what everyone does and there are no good reasons to *not* do it. With all due re

Re: Why should package declaration match filename?

2008-03-14 Thread Matisse Enzer
On Mar 14, 2008, at 6:53 PM, Michael G Schwern wrote: Matisse Enzer wrote: # file is Foo/bar.pm package Foo::Bar; That was probably a typo, Yes, a typo. Sorry to muddy the waters. Eric already covered the import() issue. Yes, and thank you Eric - I did not know that. There&#

Why should package declaration match filename?

2008-03-14 Thread Matisse Enzer
clarations match file paths? -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Diagnostics

2008-02-13 Thread Matisse Enzer
ted value as the first argument to assertions.) ;-) ----------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: expanding the cpan script, and Module

2008-02-11 Thread Matisse Enzer
e locally created, some from the public CPAN, there are many dependency and other issues (such as needing to create distro_prefs files at build-time to answer questions posed by XML::Parser and others.) -M ------- Matisse Enzer <[

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
Here's the command line that seems to work for me: ack -h '^use\s+(\S+);' --output='$1' | sort -u ----------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
On Feb 7, 2008, at 9:31 PM, Andy Lester wrote: On Feb 7, 2008, at 8:22 PM, Matisse Enzer wrote: I only care about modules loaded via 'use' for now - that's Good Enough (tm) for our purposes. First, install ack, either installing App::Ack or downloading the standalone ve

Re: Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
On Feb 7, 2008, at 9:18 PM, Andy Armstrong wrote: On 8 Feb 2008, at 02:14, Matisse Enzer wrote: I want to utility program that I can point at a list of files and/r directories and get back a list of all the unique modules/pragmas that are imported via 'use' Before i write my

Find all the modules 'use'd in a directory

2008-02-07 Thread Matisse Enzer
AN? thanx! ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Smoking private dists?

2008-02-05 Thread Matisse Enzer
On Feb 5, 2008, at 2:31 AM, "Gabor Szabo" <[EMAIL PROTECTED]> wrote: On Feb 5, 2008 11:55 AM, Andy Armstrong <[EMAIL PROTECTED]> wrote: You could look at buildbot. It can do all of the above. It's in Python if that matters :) Or Tinderbox which was the original that buildbot copied. A

Re: The Star Trek: Generations problem.

2008-01-14 Thread Matisse Enzer
? --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: The Star Trek: Generations problem.

2008-01-14 Thread Matisse Enzer
test --max-fail 1 ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: The spewing problem.

2008-01-13 Thread Matisse Enzer
On Jan 13, 2008, at 7:13 PM, Sam Vilain wrote: Matisse Enzer wrote: Ok, why do you want to stop it as fast as possible when a failure occurs? So I can more quickly focus on fixing that first test failure. I use make test 2>&1 | less Works for individual tests too make &&

Re: The spewing problem.

2008-01-13 Thread Matisse Enzer
e, but stopping the test run is indeed what I want. Certainly if here is a general hook for "what to do after the first failure" that is fine, as long as i can easily make that action BAIL_OUT or the moral equivalent. ----------- Matiss

Re: The spewing problem.

2008-01-13 Thread Matisse Enzer
On Jan 13, 2008, at 9:17 AM, Michael G Schwern wrote: Matisse Enzer wrote: On Jan 12, 2008, at 10:24 PM, Michael G Schwern wrote: Matisse Enzer wrote: I just want to be able to run a test suite with a switch that makes the entire test run stop after the first failure is reported. Ok

Re: The spewing problem.

2008-01-12 Thread Matisse Enzer
On Jan 12, 2008, at 10:24 PM, Michael G Schwern wrote: Matisse Enzer wrote: I just want to be able to run a test suite with a switch that makes the entire test run stop after the first failure is reported. Ok, it's nice to want things, but why do you want it? Almost entirely be

Re: The spewing problem.

2008-01-12 Thread Matisse Enzer
I just want to be able to run a test suite with a switch that makes the entire test run stop after the first failure is reported. --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Halting on first test failure

2008-01-11 Thread Matisse Enzer
On Jan 11, 2008, at 10:09 AM, Ovid wrote: --- Matisse Enzer <[EMAIL PROTECTED]> wrote: On Jan 11, 2008, at 8:04 AM, Ovid wrote: Well, your feature is slightly different in that it calls BAIL_OUT on failure and halts the entire test suite. That's a behavior I have wanted

Re: Halting on first test failure

2008-01-11 Thread Matisse Enzer
t run at the very first failure. -Matisse --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: buildbot - an experiment

2008-01-05 Thread Matisse Enzer
I've set up a parrot buildmaster/slave, currently located at: http://buildbot.eigenstate.net:8040/ --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: buildbot - an experiment

2008-01-05 Thread Matisse Enzer
me slaves only get changes once a day, others get every commit, etc.) - many people set up build slaves, on different platforms - the buildmaster shows the results from all slaves on a web page, and perhaps also on an IRC channel, email list, etc. --------

Re: buildbot - an experiment

2008-01-05 Thread Matisse Enzer
/test if there are no further commits for another X minutes. --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: buildbot - an experiment

2008-01-05 Thread Matisse Enzer
number(s): 2 Non-zero exit status: 1 Files=545, Tests=10580, 1602 wallclock secs ( 4.26 usr 1.88 sys + 1234.14 cusr 53.52 csys = 1293.80 CPU) Result: FAIL Failed 1/545 test programs. 1/10580 subtests failed. ------- Matisse Enzer <

Re: buildbot - an experiment

2008-01-05 Thread Matisse Enzer
table. I say: The more choices the better! --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: buildbot - an experiment

2008-01-03 Thread Matisse Enzer
On Jan 2, 2008, at 12:02 PM, nadim khemir wrote: On Saturday 29 December 2007 10.11.41 Matisse Enzer wrote: I've spent some of this holiday season learning how to set up BuildBot ... Cabie seems to be as good, if not better (psst, it's written in Perl). http://cabie.tigris.o

Re: buildbot - an experiment

2008-01-02 Thread Matisse Enzer
can set up a configuration in my own buildbot buildmaster that works. --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: buildbot - an experiment

2008-01-01 Thread Matisse Enzer
ldbot --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Test::Aggregate - Speed up your test suites

2007-12-30 Thread Matisse Enzer
- at least it struck me that way. -M --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: buildbot - an experiment

2007-12-29 Thread Matisse Enzer
nd will do more over the weekend. ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

buildbot - an experiment

2007-12-29 Thread Matisse Enzer
rious yak-shaving activities. For now I have the build status pages for the three projects at:` http://buildbot.eigenstate.net:8010/ http://buildbot.eigenstate.net:8020/ http://buildbot.eigenstate.net:8030/ ------- Matisse Enzer <[EMAIL

Re: Auto: Your message 'FAIL IO-AIO-2.51 i386-freebsd-thread-multi 6.2-release' has NOT been received

2007-12-22 Thread Matisse Enzer
27;$^X' has no spaces in the path} ) || BAIL_OUT(q{Cannot install.}); ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Auto: Your message 'FAIL IO-AIO-2.51 i386-freebsd-thread-multi 6.2-release' has NOT been received

2007-12-18 Thread Matisse Enzer
rac/wiki/ScreenShots ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: What's the point of a SIGNATURE test?

2007-12-16 Thread Matisse Enzer
n test. --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Milton Keynes PM coding collaboration

2007-12-15 Thread Matisse Enzer
http://search.cpan.org/dist/Perl-Metrics-Simple/ -Matisse --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-24 Thread Matisse Enzer
'configure_requires' => { 'DBI' => '1.58' } } }; my $prefs_file = File::Spec->catfile( $settings->{cpan_prefs_dir}, 'DBD- mysql.yml' ); return YAML::Syck::DumpFile( $prefs_file, $cpan_prefs ); } --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-24 Thread Matisse Enzer
On Nov 24, 2007, at 5:00 AM, demerphq wrote: On Nov 23, 2007 11:36 PM, Matisse Enzer <[EMAIL PROTECTED]> wrote: I think it is actually $CPAN::Perl and, if the value you use contains any whitespace the entire command will get quoted, which could break things. I think this is becau

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-23 Thread Matisse Enzer
;t happen: $CPAN::Perl = "$^X -M'INC::Surgery'"; # Will not get "safe_quote" --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-23 Thread Matisse Enzer
#Configuration_for_individual_distributions_(Distroprefs) --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-23 Thread Matisse Enzer
;, name => 'DBD::mysql', extra_args => ['install'], diag => 'notest install of DBD::mysql so we do not need a database.' }, ); return @modules; } --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: New proposed CPANTS metric: prereq_matches_use

2007-11-22 Thread Matisse Enzer
Is the code for implementing this metric available now? I'm interested in using it to create a utility that generates the appropriate entries in a form suitable for use in Build.PL and Makefile.PL format. --- Matisse Enzer <[EMAIL P

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-21 Thread Matisse Enzer
On Nov 21, 2007, at 2:44 PM, Michael G Schwern wrote: Matisse Enzer wrote: I am looking for a way to run a fully-automated CPAN build (using CPAN::Shell) of a local Perl module and its dependencies, but, I need to make REMOVE some directories from the compiled-in @INC during the build

Re: Ignoring parts of compiled-in @INC during CPAN builds

2007-11-21 Thread Matisse Enzer
modules into the install_base for the build. -M --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Ignoring parts of compiled-in @INC during CPAN builds

2007-11-21 Thread Matisse Enzer
? --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: My list of small quirks

2007-11-19 Thread Matisse Enzer
patch. -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: My list of small quirks

2007-11-19 Thread Matisse Enzer
On Nov 19, 2007, at 1:36 AM, Ovid wrote: - Original Message From: Matisse Enzer <[EMAIL PROTECTED]> This reminds me - I was wondering what it would take to implement a "BAIL_ON_FAIL" approach to running a test suite ... Should be fairly easy to implement w

Re: Test quality

2007-11-18 Thread Matisse Enzer
= set_up(); # do some assertions using $foo return tear_down($foo); } sub test_baz { my $foo = set_up(); # do some assertions using $foo return tear_down($foo); } # ------- Matisse Enzer <[EMAIL PROT

Re: My list of small quirks

2007-11-18 Thread Matisse Enzer
t failure. -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: New proposed CPANTS metric: prereq_matches_use

2007-11-18 Thread Matisse Enzer
in Makefile.PL / Build.PL ----------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: New proposed CPANTS metric: prereq_matches_use

2007-11-17 Thread Matisse Enzer
x27; => '0.66' }, ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: New proposed CPANTS metric: prereq_matches_use

2007-11-14 Thread Matisse Enzer
On Nov 13, 2007, at 9:19 PM, A. Pagaltzis wrote: So if you use any module from the CPAN, you should list it explicitly, not imply it via the main module of its containing distro. Yes, exactly. --- Matisse Enzer <[EMAIL PROTECTED]>

Re: Passing MakeMaker args to Makefile.PL in subdirectory

2007-11-09 Thread Matisse Enzer
Looks like this is a known bug in MakeMaker: #28632: MakeMaker does not set Makefile variables recursively http://rt.cpan.org/Ticket/Display.html?id=28632 --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/

Re: Passing MakeMaker args to Makefile.PL in subdirectory

2007-11-02 Thread Matisse Enzer
n of auto/XML/Parser/ Expat/Expat.bundle that contains code for both ppc and i386. ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Passing MakeMaker args to Makefile.PL in subdirectory

2007-11-02 Thread Matisse Enzer
fno- strict-aliasing -I/usr/local/include in other words it is missing: -arch ppc -arch i386 So, is this a bug in me, MakeMaker, or XML::Parser's Makefile.PL ? --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Build CPAN Modules with Universal Binaries on Mac OS X

2007-11-01 Thread Matisse Enzer
missing some obvious documentation on this? --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Overriding CORE::GLOBAL::print

2007-10-27 Thread Matisse Enzer
ation that has 'print' strewn about all through the modules as some kind of super-crude logging system. I suppose we need to bite the bullet and just find and replace all the calls to 'print' with something else. -M -------

Overriding CORE::GLOBAL::print

2007-10-27 Thread Matisse Enzer
e 11. ok 1 - overrode glob Use of uninitialized value in print at test.pl line 19. not ok 2 - overrode print # Failed test 'overrode print' # at test.pl line 19. # got: '1' # expected: 'overrode function' # Looks like you failed 1 test of 2. --

File::BaseDir - proposed new version (was Re: get_resource_by_name() - Find full-path of something in @INC)

2007-10-19 Thread Matisse Enzer
o new functions: xdg_config_resource() and xdg_data_resource() which find both files and directories (instead of only finding files.) The tarball includes updated unit tests, etc. -Matisse ------- Matisse Enzer <[EMAIL PROTECTED]> http://www

Re: get_resource_by_name() - Find full-path of something in @INC

2007-10-19 Thread Matisse Enzer
7;d really like is a xdg_config_resource() function which will find both files and directories whose paths match. ( xgd_config_files() and friends only locate regular files. Perhaps a patch is in order) ------- Matisse Enzer <[EMAI

Re: get_resource_by_name() - Find full-path of something in @INC

2007-10-19 Thread Matisse Enzer
}; Typo? Yeah, sorry for the confusion. Should be, of course: my $lookup_tables = { 'LookupTables/Colors.txt' => "$support_files_install_dir/Colors.txt", 'LookupTables/Smells.txt' => "$support_files_install_dir/Sme

Re: get_resource_by_name() - Find full-path of something in @INC

2007-10-19 Thread Matisse Enzer
is null the path of the class loader built-in to the virtual machine is searched. That failing, this method will invoke findResource(String) to find the resource. Parameters: name - The resource name Returns: A URL object for reading the resource, or null if the resource could not be found or the invoker doesn't have adequate privileges to get the resource. --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Running CPAN as a regular user, installing as root

2007-10-18 Thread Matisse Enzer
On Oct 18, 2007, at 7:53 PM, A. Pagaltzis wrote: * Matisse Enzer <[EMAIL PROTECTED]> [2007-10-18 19:35]: From your shell prompt: sudo cpan No, if you used to use CPAN.pm as root, then instead say this: sudo tar cf - .cpan -C ~root | tar xvf - -C ~ sudo rm -r ~root/.cpan

Re: Running CPAN as a regular user, installing as root

2007-10-18 Thread Matisse Enzer
are now running the cpan utility as an admin user (and thus the sudo doesn't work)? ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: get_resource_by_name() - Find full-path of something in @INC

2007-10-18 Thread Matisse Enzer
again! -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: get_resource_by_name() - Find full-path of something in @INC

2007-10-18 Thread Matisse Enzer
On Oct 18, 2007, at 2:51 PM, Eric Wilhelm wrote: # from Matisse Enzer # on Thursday 18 October 2007 13:31: So, what is Best Way? Module::Finder ? I want to find non-module resources, for example, a directory containing configuration files that was installed in @INC somewhere. My

get_resource_by_name() - Find full-path of something in @INC

2007-10-18 Thread Matisse Enzer
ow about those references in @INC? ----------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Running CPAN as a regular user, installing as root

2007-10-18 Thread Matisse Enzer
uld be working for The Man. -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: how to get archname

2007-10-15 Thread Matisse Enzer
On Oct 15, 2007, at 3:11 PM, Michael Peters wrote: use Config; $Config{archname} Doh! Thank you very nice! --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

how to get archname

2007-10-15 Thread Matisse Enzer
Hi folks, forgive me but what is the magic variable to get archname? for example, on my system archname is darwin-thread-multi-2level Obviously $OSNAME gets me 'darwin', but what about 'thread- multi-2level' ? -M -----

Re: Searching CPAN repositories in a chain

2007-10-05 Thread Matisse Enzer
thread! Thanks again. -M --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Searching CPAN repositories in a chain

2007-10-05 Thread Matisse Enzer
nd starts to install Dependency found on Bit::Vector cpan1.private.net - not found cpan2.private.net - not found mirrors.kernel.org - server unreachable mirrors.ibiblio.org - found and installed --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Searching CPAN repositories in a chain

2007-10-04 Thread Matisse Enzer
? -M --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: test duration (was TAP datetime)

2007-09-09 Thread Matisse Enzer
gh so that CruiseControl can show nice test results. The toy script i wrote (http://twoalpha.blogspot.com/2007/01/junit- style-xml-from-perl-test-files.html) does most of that, adding the per-test-duration is just sugar from this point of view. -----

Re: test duration (was TAP datetime)

2007-09-09 Thread Matisse Enzer
On Sep 9, 2007, at 1:15 AM, Ovid wrote: --- Matisse Enzer <[EMAIL PROTECTED]> wrote: A side-note to keep in mind: If we every want to be able to convert TAP to the XML format produced by the JUnit ant task (this way for example CruiseControl could more easily read the results of Perl

Re: test duration (was TAP datetime)

2007-09-07 Thread Matisse Enzer
A side-note to keep in mind: If we every want to be able to convert TAP to the XML format produced by the JUnit ant task (this way for example CruiseControl could more easily read the results of Perl tests) then it becomes desirable to get timing info for each perl test - that is, each ok(

Re: Best Practice for tracing program flow

2007-07-24 Thread Matisse Enzer
On Jul 23, 2007, at 10:10 PM, Michael G Schwern wrote: Matisse Enzer wrote: What's the current best practice for running a Perl program and getting a report of all the subroutine calls throughout the life of the program in the order in which they were called? (as opposed to something

Best Practice for tracing program flow

2007-07-23 Thread Matisse Enzer
b was called, but not in the order they were called.) -M --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: .t files as specs

2007-06-20 Thread Matisse Enzer
anyone tried writing test files as part of their spec's? An overview document would also be needed, and some time walking through the expected testing. But it sure would be setting clear expectations. Comments? Mike ------- Matisse

Re: Pod at __END__

2007-06-07 Thread Matisse Enzer
I've done pod both ways, for over a year each way, and I am not really happy with either approach. If I was using an editor that did pod-folding the way Eclipse does javadoc folding, then i would probably favor the inline approach. -M On Thu, 7 Jun 2007, chromatic wrote: > On Thursday 07 June

Re: Pod::Critic?

2007-06-07 Thread Matisse Enzer
I wonder how you all feel these days about the "put the pod at the __END__" approach? I've been trying it for over a year now and am not really sure its the best way to go (vs. having the pod for each method right next to it.) -M On Thu, 7 Jun 2007, Jeffrey Thalhammer wrote: > > I've written ple

CPAN testers generates Makefile.PL without prerequisites

2007-05-20 Thread Matisse Enzer
n of the above ? :-) -Matisse ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Paying for TAP 2.0

2007-03-07 Thread Matisse Enzer
I'd contribute $200, if that would help. -M

Re: a safer way to use no_plan?

2007-03-03 Thread Matisse Enzer
he test* methods. It counts the number of test* methods for you. -M ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Fixtures

2007-02-13 Thread Matisse Enzer
://fitnesse.org/FitNesse/FitNesse/FixtureCode ----------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Test::Harness 3.0

2007-01-21 Thread Matisse Enzer
-from-perl- test-files.html I'm guessing T::H 3.0 might make this easier (for example, getting elapsed time on each assertion perhaps?) ------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Dealing with balls o' mud (was: Re: Test::Builder feature request)

2007-01-15 Thread Matisse Enzer
o' mud this is a very hard problem. It requires that one: 1. Estimate the effort/cost of a refactoring/improvement. and 2. Estimate the value of a refactoring/improvement. Since the ball o' mud is, by definition, hard to understand, these estimates are even harder th

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

2006-12-19 Thread Matisse Enzer
On Dec 17, 2006, at 9:02 PM, Randy W. Sims wrote: 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

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

2006-12-16 Thread Matisse Enzer
) ? -M --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Perl::Metrics::Simple 0.30

2006-12-15 Thread Matisse Enzer
f 8. I realize that I'm not actually counting 'ne', 'eq', 'ge', or 'le', which is probably a bug :-) I'm totally interested in better way(s) to measure this by the way. --- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Re: Perl::Metrics::Simple 0.30

2006-12-15 Thread Matisse Enzer
while ); See themeasure_complexity() method in Perl::Metrics::Simple::Analysis::File ----------- Matisse Enzer <[EMAIL PROTECTED]> http://www.matisse.net/ - http://www.eigenstate.net/

Perl::Metrics::Simple 0.031

2006-12-14 Thread Matisse Enzer
By the way - I've put a bug-fix version up on the CPAN: http://search.cpan.org/dist/Perl-Metrics-Simple/ Thecountperl script in 0.031 fixes the bug Ovid found. -Matisse

Re: Perl::Metrics::Simple 0.30

2006-12-14 Thread Matisse Enzer
On Dec 14, 2006, at 3:05 PM, Michael G Schwern wrote: Matisse Enzer wrote: sub complexity_of_six { my $bar = shift; my $total = 0; my $type = ref $bar; if ( ! $type ) { $total = $bar; } elsif ( $type eq 'ARRAY' ) {

Re: Perl::Metrics::Simple 0.30

2006-12-14 Thread Matisse Enzer
On Dec 10, 2006, at 1:16 AM, Ovid wrote: --- Matisse Enzer <[EMAIL PROTECTED]> wrote: McCabe Complexity - Code not in any subroutine:: min: 1 max 10 mean: 1.00 std. deviation: 2.54 median: 1.00 Subro

Perl::Metrics::Simple 0.30

2006-12-09 Thread Matisse Enzer
Now in a CPAN near you: Perl::Metrics::Simple 0.30 Installs thecountperlscript which you point at one or more Perl files (and/or directories) and get a report of all the subroutines, sorted by complexity. Line counts exclude both comments and pod. For example: % countperl lib/T

  1   2   >