in reply to How To Test
Simply don't use weirdo testing ideas like Test::NoWarnings. This module only ever causes grief when a harmless warning pops up.
You can make testing as hard on yourself as you like. Include no tests, or a test.pl that only outputs
1..1 ok
You are quite vague about your situation, code-wise. There are no "somewhat OK" tests. Write all your tests so that they pass, fail, or skip if unapplicable. If you can't test a function that way, either skip it completely, or split it or marke it parametrizable.
As an example, I'm currently writing Win32::Wlan. This module is ugly to test, because it tries to fetch information from the Wlan surroundings. This means that I will skip tests in many situations:
Even if these conditions pass, the subsequent tests are still split up into two parts
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How To Test
by John M. Dlugosz (Monsignor) on May 15, 2011 at 09:25 UTC | |
by Corion (Patriarch) on May 15, 2011 at 09:41 UTC | |
by John M. Dlugosz (Monsignor) on May 15, 2011 at 09:50 UTC |