Skip Menu |

This queue is for tickets about the Test-Fork CPAN distribution.

Report information
The Basics
Id: 17567
Status: open
Priority: 0/
Queue: Test-Fork

People
Owner: Nobody in particular
Requestors: VPARSEVAL [...] cpan.org
Cc: stas [...] stason.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



CC: Stas Bekman <stas [...] stason.org>
Subject: [PATCH] Forking tests
Hi, the issues with Test::More on forking tests are known for quite a while and they've become annoying enough to finally warrant a patch which you'll find attached. A major problem is the testcase t/forked.t that I included. Apparently Test::Builder::Tester cannot really be used for a forking environment so I had to work around it in ugly ways. You're invited to have a closer look at the patch before applying. I didn't for instance bother with Test::Builder::current_test(). What I wanted to make work are forking test-scripts using Test::More and therefore I made no provisions going beyond that: use Test::More forked => 'path/to/storable_image'; is all there is about this patch. Also, Storable, Cwd and File::Spec should be added to the list of prerequisite modules in Makefile.PL. Cheers, Tassilo
Subject: testmore
Download testmore
application/octet-stream 8.9k

Message body not shown because it is not plain text.

I was reviewing the Test::More ticket queue and I somehow missed this one. Sorry. It's an interesting solution to the forked test problem. I guess it handily solves the IPC problem. One thing I don't understand is how this detects a child process. Or does it always put the results into the forked file? Anyhow, this is interesting. If you put it up as a fork on github that would make it easier t work with. http://github.com/schwern/test-more/tree/master