Re: Tagging tests

2012-05-01 Thread Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯
 Is there any way to 'tag' tests in Perl?
http://p3rl.org/Test::Less

 - If there are common problems (computer can't access the net, unicode
 handling is dodgy), this makes it more straightforward to diagnose
 than reading through logs of very long test scripts with lots of
 failure diagnostics
http://analysis.cpantesters.org/


signature.asc
Description: PGP signature


Re: Tagging tests

2012-05-01 Thread Daniel Perrett
Thanks, I'll look into both!

Daniel

On 1 May 2012 19:17, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 da...@cpan.org wrote:
 Is there any way to 'tag' tests in Perl?
 http://p3rl.org/Test::Less

 - If there are common problems (computer can't access the net, unicode
 handling is dodgy), this makes it more straightforward to diagnose
 than reading through logs of very long test scripts with lots of
 failure diagnostics
 http://analysis.cpantesters.org/


Re: Tagging tests

2012-04-25 Thread Greg Sabino Mullane
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 g...@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8


pgpMKsTryIiUA.pgp
Description: PGP signature