Skip Menu |
 

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

Report information
The Basics
Id: 13141
Status: resolved
Priority: 0/
Queue: Test-Harness

People
Owner: Nobody in particular
Requestors: alexmv [...] bestpractical.com
Cc:
AdminCc:

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



Subject: Sorted tests for prove
From: Alex Vandiver <alexmv [...] bestpractical.com>
To: bugs-test-harness [...] rt.cpan.org
Date: Tue, 07 Jun 2005 18:41:25 -0400
Download (untitled) / with headers
text/plain 237b
Heya, Attached is a patch that adds a --sorted flag to prove, to force tests to be run in ascii-betical order. This is often useful when different OS's run return globs in differing orders, making order-dependent tests fail. - Alex
Download prove-sorted.patch
text/x-diff 1.5k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 261b
[alexmv@bestpractical.com - Tue Jun 7 18:40:46 2005]: Show quoted text
> Heya, > Attached is a patch that adds a --sorted flag to prove, to force > tests > to be run in ascii-betical order.
Yes, the patch does add a --sorted flag, but it appears to do nothing with it.
From: david.pitt [...] national.com.au
Download (untitled) / with headers
text/plain 766b
[alexmv@bestpractical.com - Tue Jun 7 18:40:46 2005]: Show quoted text
> Heya, > Attached is a patch that adds a --sorted flag to prove, to force > tests > to be run in ascii-betical order. This is often useful when
different Show quoted text
> OS's run return globs in differing orders, making order-dependent > tests > fail. > - Alex >
Sorted should be the default behaviour - if you don't want sorted you can use --shuffle option. Suggest the following patch: *** /opt/local/perl/bin/prove Tue Jul 19 12:22:37 2005 --- /tmp/prove Fri Sep 2 11:56:35 2005 *************** *** 114,120 **** warn "$start: $!\n"; } ! return @hits; } sub shuffle { --- 114,120 ---- warn "$start: $!\n"; } ! return sort @hits; } sub shuffle {
This has been solved in the latest development release.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.