Front page | perl.qa |
Postings from April 2012
Re: Tagging tests
Thread Previous
From:
Greg Sabino Mullane
Date:
April 25, 2012 11:45
Subject:
Re: Tagging tests
Message ID:
20120425184459.GD2875@tinybird.home
On Tue, Apr 24, 2012 at 07:09:19PM +0100, Daniel Perrett wrote:
> Is there any way to 'tag' tests in Perl?
Not that I can think of, in the way that you want.
> It looks likely that even though all the search tests fail, they are
> failing because there is no working connection, as tested by the first
> http request. Although five of the unicode tests are failing, three
> aren't (throwing unicode characters at the syntax).
Seems to me the easiest way to handle that is to have simple tests
at the start of your chain that BAIL OUT if they see a major problem.
While the unicode wouldn't be in that solution, I can't see how the
complexity of adding tags would prevent a user from having to manually
look at the failing tests anyway.
> (I guess one answer could be 'write them in separate test scripts' but
> what I want is tags (many-to-many) rather than categories
> (many-to-one), and more files is a bit cumbersome.)
Perhaps you can give a more convincing/real-world test case where
this would be needed? I would think that a single early test catching
many known major failures would be the way to go. If there was something,
such as unicode, which warranted tags, I'm not sure why it wouldn't warrant
it's own group of tests. Tests are the one are where I never worry about
overlap, efficiency, or having too many files. :)
--
Greg Sabino Mullane greg@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
Thread Previous