[Perlunit-users] Testing module validity with test::Unit
Status: Beta
Brought to you by:
mca1001
|
From: Dmitry D. <dd...@ic...> - 2003-09-17 06:17:31
|
Hello All!
From the Test::More documentation I learned about use_ok() and
require_ok() test functions. They recommend to use them as follows:
BEGIN { use_ok('Some::Module') }
BEGIN { ...some code that depends on the use... }
In the case of failure to 'use' some module test will report it. Is
there any way (or need?) to do something similar with Test::Unit? Say, I
want to test my class methods, but the whole module is broken. I will
get standard perl compile error in that case?
Regards,
Dmitry.
|