openbsd-ports/devel/p5-Test-use-ok/pkg/DESCR
espie 4e0c7446c7 alternative to Test::more::use_ok
prereq for regression tests for catalyst.
2006-11-04 15:04:02 +00:00

9 lines
390 B
Plaintext

According to the Test::More documentation, it is recommended to run
"use_ok()" inside a "BEGIN" block, so functions are exported at
compile-time and prototypes are properly honored.
With this module, simply change all "use_ok" in test scripts to "use
ok", and they will be executed at "BEGIN" time. The explicit space after
"use" makes it clear that this is a single compile-time action.