Re: --session option to prove

2004-12-13 Thread Yuval Kogman
) has so far been my main reason for delays. I would like to implement a simple network transport based on a subset of Class::Publisher to provide sane client/server interaction between the test daemon and it's clients. What do you think? -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEB

Re: Coverage testing of web application

2005-03-02 Thread Yuval Kogman
On Wed, Mar 02, 2005 at 12:36:43 +0200, Gabor Szabo wrote: > How to check the coverage of the CGI scripts and the modules used by them ? I would make scripts that look like < 0xEBD27418 perl hacker & /\ kung foo master: /me kicks %s on the nose: neeyah! pgpAMbexaYOhV.pgp D

Call for participation: QA perl6 (or actually pugs)

2005-03-13 Thread Yuval Kogman
d lure you guys into participation in pugs. See you there[1]! [1] #perl6 on freenode, perl6-compiler@perl.org, or anywhere else linked from http://pugscode.org. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: MMM

Announcing Test::TAP::Model and Test::TAP::HTMLMatrix

2005-04-15 Thread Yuval Kogman
Petal template. Ciao! -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /methinks long and hard, and runs away: neeyah!!! pgpPHu6D5RWvM.pgp Description: PGP signature

Re: How to get started with Test::TAP::HTMLMatrix

2005-07-03 Thread Yuval Kogman
r visualize the state of > large test runs. > > However, I can't tell from the docs how to run the test suite such that > it gets involved in the process. Could someone provide an example? > > Thanks! > > Mark > > -- > http://mark.stosberg.com/ >

Re: How to get started with Test::TAP::HTMLMatrix

2005-07-06 Thread Yuval Kogman
ab it from > http://www.hutchinsonsoftware.com/misc/run_tap In this script you probably want to set $v->has_inline_css(1), so that you can have the proper CSS stuff without mucking with another file. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo mast

Re: Looking into integrating Test::TAP::HTMLMatrix with prove

2005-07-08 Thread Yuval Kogman
;t through how this would work in the face of having 2 streams > that might have meaningful data on them and aren't synchronized (STDOUT > and STDERR). STDERR should have data only for the user, at least in my experience. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me does a karate-chop-flip: neeyah!! pgpaFpIBqVlGB.pgp Description: PGP signature

Re: AnnoCPAN and a wiki POD idea

2005-07-08 Thread Yuval Kogman
It's been done =) I'll post a link as soon as ingy replies, which usually takes a while.. =) -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me climbs a brick wall with his fingers: neeyah! pgpGXBZJidLRS.pgp Description: PGP signature

Re: Devel::Cover Problem: testing || for a default value.

2005-07-11 Thread Yuval Kogman
truish, as far as Devel::Cover is concerned - it might not be. Any fix that could be thought up is inherently problematic. Coverage reporting is not done for the pretty colors - a human reads it, and says "OK, this is logical, get_current_coords always returns a true value". It's

Re: Devel::Cover Problem: testing || for a default value.

2005-07-11 Thread Yuval Kogman
On Mon, Jul 11, 2005 at 13:17:48 -0700, Michael G Schwern wrote: > On Mon, Jul 11, 2005 at 07:38:57PM +0300, Yuval Kogman wrote: > > I'll make the same argument "no broken windows" argument here that I do > about warnings and tests: elminate all warnings, even if t

Re: Devel::Cover Problem: testing || for a default value.

2005-07-11 Thread Yuval Kogman
to Perl's idiomatic nature is a harder question though. Personally I prefer explicit meta-comments, one for each || in the line. I think It's a bit reminiscent of Test::More's $TODO. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung

Re: Test::Harness::Straps - changes?

2005-07-30 Thread Yuval Kogman
ndler, and the interactive terminal output thingy will be another. Even in it's current hackish status Test::TAP::Model sure made writing Test::TAP::HTMLMatrix a lot easier. Ciao! -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo

Re: Testing module madness

2005-09-11 Thread Yuval Kogman
3 days get a buggy, outdated version when a better one is updated? Aren't the 3 days till the patch is applied enough? CPAN.pm handles module dependencies. All Tels really has to do is set 'follow' instead of 'ask', or use one of the tools available to make a co

Re: Testing module madness

2005-09-11 Thread Yuval Kogman
y installations work and are reccomended * inconsistency in the notion of the latest version of a module being installed by a user who is not expecting a bundled support module -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me wields bonsai kittens: neeyah pgpzLk2HHAn3Y.pgp Description: PGP signature

Re: Testing module madness

2005-09-11 Thread Yuval Kogman
On Mon, Sep 12, 2005 at 04:22:05 +0300, Yuval Kogman wrote: > It still promotes: I forgot: * unnecessary rolling and rerolling of distribution tarballs with no real merit but updating the bundled code causes version space pollution, and makes users who update anno

Re: First (developers) Release of Test::Shlomif::Harness

2005-10-11 Thread Yuval Kogman
picked up by the normal means - so now my perl and (most of) my VB code > can be tested. Yay. We did the same for our C++ unit testing suite. It's a bit kludgier, since there isn't one stream per file, but a bunch of lines per test fixture, so we use analyze_lines. -- () Yuval

Re: testing Javascript applications ?

2005-11-28 Thread Yuval Kogman
cast-7-talking-selenium-with-luke-closs That and unit tests for your ajax handlers should do it. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me kicks %s on the nose: neeyah! pgprvZR0Fd8IK.pgp Description: PGP signature

Re: IPC::Run or something else?

2006-02-05 Thread Yuval Kogman
choice? I think it's a very good choice. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me does a karate-chop-flip: neeyah!! pgpBJNCaqSLbk.pgp Description: PGP signature

Re: IPC::Run or something else?

2006-02-05 Thread Yuval Kogman
m IPC::Run3 to IPC::Run is quite easy. If you sever do need weird callbacks, several processes at a time, or PTY support it should be an easy switch. However, for the mean while IPC::Run3 is probably just what you need. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /

Re: ANNOUNCE - Smolder 0.01

2006-03-05 Thread Yuval Kogman
ut that hasn't been tested) and MySQL 4.x. Could you please please please pretty please with a cherry on top add SQLite support? Another, much more pretentious request is that you refactor anything and everything you can into generic modules and put them on the CPAN. -- () Yuval Kogman &

Re: ANNOUNCE - Smolder 0.01

2006-03-05 Thread Yuval Kogman
nd Test::TAP::Model that > should make it easier to gather more information. Shlomi Fish wrote Test::Run, a Test::Harness fork and was considering improving Test::TAP::Model as well... It might be beneficial for you guys to help each other out if you can. -- () Yuval Kogman <[EMAIL PROTE

Re: What is the Value of t/0-signature.t?

2006-03-09 Thread Yuval Kogman
not signature tests are useless (i think they are, but then again i also think i have some modules with Test::Distribution that checks that... so I am a hypocrit ;-) the usability of these tests will be good enough. (I'm CCing audrey so that she'll know I'm dissing her module ;-) -

Re: Show-stopping Bug in Module::Install and the Havoc it Created

2006-03-10 Thread Yuval Kogman
k it's overkill. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me wields bonsai kittens: neeyah pgpwVvPXpof4P.pgp Description: PGP signature

Re: "Erroneous" CPAN Testers Reports

2006-03-13 Thread Yuval Kogman
n.testers/297804 The *really* bad thing is that i didn't even get a "Can't locate ok.pm in @INC" in the output, only that some tests failed, and no further output. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\

Re: "Erroneous" CPAN Testers Reports

2006-03-14 Thread Yuval Kogman
test_failure prereq_failure etc etc. Human *AND* machine readable. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: *shu*rik*en*sh*u*rik*en*s*hur*i*ke*n*: neeyah pgpt28wRHpt4p.pgp Description: PGP signature

Announce: Test::TAP::HTMLMatrix 0.05 and Test::TAP::Model 0.06

2006-03-27 Thread Yuval Kogman
consolidated (the example is actually a bit overly verbose - it could have just been Test::TAP::HTMLMatrix->new( $model_ok, $modeL_failing )). The resulting HTML file displays the two test runs together, with their differences highlighted and expanded. Have fun! -- Yuval Kogman <[EMAIL PROTECTED]

Test::Memory::Cycle (well really Devel::Cycle) - support for closures

2006-04-23 Thread Yuval Kogman
nally feel that this be a bit louder, but whatever Lincoln feels is best is his own choice. Anyway, have fun. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 diff -Nur Devel-Cycle-1.04/lib/Devel/Cycle.pm Devel-Cycle-with_code/lib/Devel/Cycle.pm --- Devel

Re: Test::Memory::Cycle (well really Devel::Cycle) - support for closures

2006-04-23 Thread Yuval Kogman
Oops, bad patch. I added lib/Test/Memory/Cycle.pm as a symlink so that I don't have to 'make' each time to run the tests. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpPKFcAKsI6l.pgp Description: PGP signature

Re: CPANTS is not a game.

2006-05-23 Thread Yuval Kogman
ess $ENV{TEST_POD} is off. They add kwalitee, but they usually fail making this even more of a contest when size doesn't matter ;-) -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpeXw7ybd3GT.pgp Description: PGP signature

Re: TAP::Harness

2006-07-01 Thread Yuval Kogman
mess). -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpwAyXqTBd4Y.pgp Description: PGP signature

Re: TAP::Harness

2006-07-01 Thread Yuval Kogman
since TAP revisions are not explicitly asked for... Too bad I missed talking to you at the hackathon - if I had only thought about this we could have talked in meat-space. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpf438d8dDtr.pgp Description: PGP signature

Re: TAP extension proposal: test groups

2006-07-01 Thread Yuval Kogman
was very hacky to make work. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpAR23IPo6Du.pgp Description: PGP signature

Re: TAP extension proposal: test attributes

2006-07-07 Thread Yuval Kogman
etc), the position of the test so that we can use backlinks, and color the test file in HTML, and potentially other info. It would be nice if this would be standardized. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpg2RypZImgp.pgp Description: PGP signature

Re: Terrible diagnostic failure

2006-09-05 Thread Yuval Kogman
::Builder are much more useful this way, too. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpn0AMgdGKGV.pgp Description: PGP signature

Re: Terrible diagnostic failure

2006-09-05 Thread Yuval Kogman
On Tue, Sep 05, 2006 at 12:01:47 +0300, Yuval Kogman wrote: > FWIW, pugs' test suite outputs diags to STDOUT. Things like > Test::TAP::Builder are much more useful this way, too. Err, i mean Test::TAP::Model. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.wooblin

Re: CPANTS quality brainstorming

2006-09-13 Thread Yuval Kogman
at file. If someone would like to compile a directory of licenses as a module, with data from that license site, then this would be nice, but Module::Build's data is just not good enough to be a fair metric. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpFl1J9euTgg.pgp Description: PGP signature

Re: Don't 'rm -fr /' when testing

2006-09-26 Thread Yuval Kogman
ock object that doesn't actually send email b. also test that send_email is being called when appropriate -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpRLfNaMNA86.pgp Description: PGP signature

Re: Parallelizing TAPx::Harness?

2007-02-05 Thread Yuval Kogman
*cough* if it were a push parser *cough* -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-25 Thread Yuval Kogman
Is there a function that is to this as overload::StrVal is to stringification? I don't see it on the CPAN yet so I figured I'd ask. The feature is übersweet, and Data::Lazy should make good use of it too. You++! Cheers, -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingm

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-25 Thread Yuval Kogman
On Sun, Feb 25, 2007 at 22:51:43 -0800, Joshua ben Jore wrote: > On 2/25/07, Yuval Kogman <[EMAIL PROTECTED]> wrote: > >Is there a function that is to this as overload::StrVal is to > >stringification? > > No. blessed() doesn't lie to you and I don't change t

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-25 Thread Yuval Kogman
On Sun, Feb 25, 2007 at 22:34:15 -0800, chromatic wrote: > Why not, I already have half of the other stuff in UNIVERSAL Just don't tell Adam. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpBQt76ylqNT.pgp Description: PGP signature

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-25 Thread Yuval Kogman
def } <http://search.cpan.org/src/GBARR/Scalar-List-Utils-1.19/lib/Scalar/Util.pm> I predict that the next anti duck perl idiom is going to be: eval { $x->UNIVERSAL::can("can") } to determine "true blessedness" -- Yuval Kogman <[EMAIL PROTECTE

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-26 Thread Yuval Kogman
erence, the empty string otherwise. I suppose if ( length( ref $x ) ) { } is a better test, but when have you ever seen that? I don't think i'll start using it. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpsBqvuuswWZ.pgp Description: PGP signature

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-26 Thread Yuval Kogman
lities of a value it's because i'm writing a dispatch table wrapper that will look for a handler based on the class or something like that. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgp4GLKtYxek8.pgp Description: PGP signature

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-26 Thread Yuval Kogman
bviously doing it for that intended behavior. What is the alternative? How much "broken" perl code do you intend to fix? -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpxh861JJQV8.pgp Description: PGP signature

Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane

2007-02-26 Thread Yuval Kogman
l indifference - there's lots of code that needs to care a little bit in order to be more flexible, not less. I can post examples of what I mean if you like. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpNy7KmpcDAD.pgp Description: PGP signature

Re: Object Identification Cold War and the return of autobox.pm (was Re: UNIVERSAL::ref might make ref( $mocked_obj ) sane)

2007-02-26 Thread Yuval Kogman
On Mon, Feb 26, 2007 at 13:50:58 -0800, Michael G Schwern wrote: > Please reconsider autobox. While I second that for the aforementioned reasons I have an off topic one too: That's the only way it'd get accepted. Something that devious has to be in core to pass off as safe. --

Re: New CPANTS metrics

2007-03-31 Thread Yuval Kogman
uses_version_control sounds more like lacks_manifest_skip_file which should deduct kwalitee IMHO. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpsXwQhXSOWB.pgp Description: PGP signature

Re: New CPANTS metrics

2007-03-31 Thread Yuval Kogman
On Sat, Mar 31, 2007 at 18:26:26 -0400, Yuval Kogman wrote: > uses_version_control sounds more like lacks_manifest_skip_file which > should deduct kwalitee IMHO. Hmm... reading into the other metrics, it seems like you were kidding. My bad ;-) -- Yuval Kogman <[EMAIL PROTECT

Re: New CPANTS metrics

2007-04-01 Thread Yuval Kogman
s ;-) It was def. a good one =) -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpQBGUXShqVY.pgp Description: PGP signature

Re: Does this pattern have a name?

2007-04-02 Thread Yuval Kogman
form controller. The difference is that the > two views actually inherit their behavior from the controller and can be > used interchangeably with it. Eh, how? -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpYVx1iOg9y8.pgp Description: PGP signature

Re: Does this pattern have a name?

2007-04-02 Thread Yuval Kogman
it as separation of concerns with duck typing in the model and view, and ugliness kept contained in the controllers, IMHO not much to do with inheritence/chaining at all, but i guess that could work. -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgpD6Y9aJddZ7.pgp Description: PGP signature

Re: Does this pattern have a name?

2007-04-02 Thread Yuval Kogman
xtends works well, if you want it for real code I guess you could cannibalize that, but I doubt you'll find this as a pattern anywhere else because most languages that have a pattern naming culture lack the flexbility to do these tricks -- Yuval Kogman <[EMAIL PROTECTED]> htt

Re: Does this pattern have a name?

2007-04-02 Thread Yuval Kogman
ber of > mutatable entities in a program - which is generally a kwalitee and perhaps > even quality win. I've had very good results with that approach. Class::Workflow's instance object is perhaps the most prominent example, but lots of meta-meta-meta-meta work in Moose land's

Re: Does this pattern have a name?

2007-04-02 Thread Yuval Kogman
On Mon, Apr 02, 2007 at 23:08:40 +0100, Andy Armstrong wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 2 Apr 2007, at 22:47, Yuval Kogman wrote: > >>I explicitly don't want $wider and $mono to be /clones/ of $base - I want > >>them to /be/

Test::TAP::Model

2007-08-30 Thread Yuval Kogman
If anybody is interested in helping the project commit access and pause comaint is readily available. The only caveat is that the relative fame is diminished due to the already long list of authors ;-) -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418

Re: Test::TAP::Model

2007-09-02 Thread Yuval Kogman
On Sun, Sep 02, 2007 at 14:15:01 +0100, Andy Armstrong wrote: > Assuming nobody has already volunteered I'll wave my hand. I'll take > a look at it sometime in the next few days if that's OK. Awesome =) I'm nothingmuch on #perl-qa if you'd like to poke --

Re: New assertions in Ruby

2008-02-12 Thread Yuval Kogman
ariable, and the variable replaces the subexpression. The variables live outside the new closure, which closes over them. The subexpressions are also deparsed individually. Then on failure the subexpression variable hash thingy could just be dumped. Thoughts? -- Yuval Kogman

Re: New assertions in Ruby

2008-02-14 Thread Yuval Kogman
this should work: sub list_ctx { return wantarray } ( list_ctx ? @{ $deparsed{blah} = [ $subexpr ] } : $deparsed{blah} = $subexpr } ) but only as an rvalue (assigning to an ? : where one subexpr is listy and other is scalary is a compile time error IIRC). -- Yuval Kogman <[EMAIL PROTECTED]> http://nothingmuch.woobling.org 0xEBD27418 pgp9p9hcxG80O.pgp Description: PGP signature