I had an idea yesterday. On more than one occassion, a I've been asked
about running tests against a live site. My usual waffle is to talk about
assertions or to build a seperate test suite which is explicitly non-modifying.
Or something Skud came up with which was to tag blocks of tests in the
On Fri, Aug 01, 2003 at 01:07:15PM -0700, Michael G Schwern wrote:
Another way is to use a TEST: block
and have Filter::Simple strip them out.
TEST: {
cmp_ok( ... );
}
snip
Questions? Comments? Approval?
Hell, why wait for wiser heads?
Make that...
http://www.pobox.com/~schwern/src/Test-AtRuntime-0.01.tar.gz
--
I knew right away that my pants and your inner child could be best friends.
Michael G Schwern wrote in perl.qa :
The only part missing is the ability to shut the tests off once you've
released it to production.
You could perhaps use the assertion feature of perl = 5.9.0
(assertion.pm and -A switch -- yes I know it lacks docs.)
On Friday, August 1, 2003, at 09:07 pm, Michael G Schwern wrote:
[snip]
I was thinking about inline testing, Test::Class and such and how it
would
be nice if we could just write test functions right in our code, like
assertions. Like Carp::Assert::More, but I want all the Test:: stuff