Date: | Tue, 8 Oct 2002 00:34:26 +1000 |
From: | Iain Truskett <spoon [...] cpan.org> |
To: | bug-module-build [...] rt.cpan.org |
Subject: | Test order |
Heyo,
Minor patch. I actually like having my tests in a particular order, thus
an addition of 'sort' to the runtests call is a good thing imho. I
suspect a proper patch really should have included some method for
the author to provide their own sorting (à la Test::Manifest), but this
does it for me =)
Also, I'm yet to figure out how to get $self->{properties}{verbose} to
be true (for verbose tests).
--- Base.pm.orig Fri Aug 23 18:45:11 2002
+++ Base.pm.new Mon Oct 7 23:00:46 2002
@@ -581,7 +581,7 @@
if (@tests) {
# Work around a Test::Harness bug that loses the particular perl we're running under
local $^X = $self->{config}{perlpath} unless $Test::Harness::VERSION gt '2.01';
- Test::Harness::runtests(@tests);
+ Test::Harness::runtests(sort @tests);
} else {
print("No tests defined.\n");
}
cheers,
--
Iain.