Skip Menu |

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

Report information
The Basics
Id: 93788
Status: new
Priority: 0/
Queue: Test-Harness

Owner: Nobody in particular
Requestors: philwells [...]

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

From scorpionmime [...] Wed Mar 12 09: 00:31 2014
MIME-Version: 1.0
X-Spam-Status: No, score=-2.598 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked
Content-Type: multipart/alternative; boundary="001a11c264ec4351c404f4686b14"
Message-ID: <CAEtbeDtEfOpSLnCE46ZhZBND2YduEu5QWqFcfVtAyrkLw_uoJw [...]>
X-Received: by with SMTP id nf15mr7655160wic.9.1394629220190; Wed, 12 Mar 2014 06:00:20 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -2.598
Received: from localhost (localhost []) by (Postfix) with ESMTP id DBA402404AA for <cpan-bug+Test-Harness [...]>; Wed, 12 Mar 2014 09:00:30 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id i3rtrPYUFCX7 for <cpan-bug+Test-Harness [...]>; Wed, 12 Mar 2014 09:00:29 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id 5FB4224046A for <bug-Test-Harness [...]>; Wed, 12 Mar 2014 09:00:28 -0400 (EDT)
Received: (qmail 1194 invoked by alias); 12 Mar 2014 13:00:27 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Wed, 12 Mar 2014 06:00:24 -0700
Received: by with SMTP id hn9so2337837wib.10 for <bug-Test-Harness [...]>; Wed, 12 Mar 2014 06:00:20 -0700 (PDT)
Received: by with HTTP; Wed, 12 Mar 2014 06:00:00 -0700 (PDT)
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Delivered-To: cpan-bug+Test-Harness [...]
Subject: On Windows 7, 'prove -j N..' launches test scripts in parallel but executes tests sequentially
Return-Path: <scorpionmime [...]>
X-RT-Mail-Extension: test-harness
X-Original-To: cpan-bug+Test-Harness [...]
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=XmTaciYDEV+Kb/2FTL8ztE9uPJRc56wrS/aRcE315R4=; b=LZhc5pUd6Ei54QsutxfGuweQuWiwbEwf3fnDxv9dwMoVdp5yCNIl0gKwm/kKCeiSVp JNOHzWJZAWR/uth8pe4RBTsE1VsSn93Isa6ChAqLmRCQHD44VSb0bwANOX5Aofc5JBcx odhF9bC8ANR8AWakR55TMPRARhM3XW0ogP/mcQMsqYd3hGMctU6+q9sbjoQiUCDVobLR By7G1zKWut9Sy721EPGGDL7dBkgjpFRqTxU3vYLorkhD9BcNisMlxoQfMKNh3Lqyp8k0 nPhlyVMGlgovgR36PzvHZNuf6dNKG09IxoLoaQe+v+YAEZ3cXSKwzfh1E1voIr8Zpv5a jtMQ==
X-Google-Sender-Auth: XnhR4HK1xkjfv7L9XMI-aZJR3Ck
Date: Wed, 12 Mar 2014 09:00:00 -0400
Sender: scorpionmime [...]
To: bug-Test-Harness [...]
From: Phil Wells <philwells [...]>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1581
Download (untitled) / with headers
text/plain 1.5k
As seen here: I've got a couple of .t files in a folder. Each test script launches its own instance of WebDriver (using Selenium::Remotre::Driver) and therefore opens its own browser. These then pass their instructions to page objects in separate modules. The page objects are where most of the test assertions occur, alas. I run them in parallel using, say, 'prove -j2 testfolder'. When I do this I see two browsers open, responding to the Selenium calls, but the test results and browser action indicate that the second script only goes as far as just before the first script's first call to 'Test::More', then it hangs until the first script has finished. I've tried just putting bare pass() calls at the top of each .t file and confirmed that the test case in the second script isn't tried until the entire first script is completed. Here's the output. While the first test is running I see this: ===( 4;12 4/40 0/? )=========================================== The first pair of numbers and the left number in the second pair go up as the first script's test cases are verified. After this, when the second script starts, the output changes to this: testfolder\test2.t .. 4/35 With the left number increasing as test cases are executed. Tests are executed in parallel as expected from *nix terminals. I'm running this from the command line in 64-bit Windows 7, ActiveState Perl v5.16.1. CPAN shows Prove is up to date (3.28).
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 6762

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to