Test::Harness now comes with a command-line utility called prove that runs tests against the harness. Why have a separate utility? What's wrong with "make test"?
prove has a number of advantages over make test when doing development.
Perl users typically run the test harness through a makefile via
make test. That's fine for module distributions, but it's
suboptimal for a test/code/debug development cycle.
prove lets your run against only the files you want to check.
Running prove t/live/ t/master.t checks every *.t in t/live,
plus t/master.t.
To get full test program output from make test, you must set
HARNESS_VERBOSE in the environment. prove has a -v option.
prove's -T runs your tests under perl -T.
You can use prove's --shuffle option to try to excite problems
that don't show up when tests are run in the same order every time.
More and more users are using Perl's testing tools outside the context of a module distribution, and may not even use a makefile at all.
I welcome your comments and suggestions about prove, and I hope you find it as useful as I have over the past couple years of development.
Cool! (Score:2)
-sam
Re:Cool! (Score:2)
First, test was right out, even if it wasn't already taken. It's one of those words that when I see it as a file I assume is garbage, like temp or foo. runtests is 8 characters, and it's two words. I wanted a single word. The program started as smoke at my day job, but smoke already has a meaning to Perl, or at least to the people who run the builds.
So I had to have a single word, and I convened an impromptu brainstorming session i
--
xoa
Re:Cool! (Score:1)
"Why is it called taken?"
"Because test is taken."
---ict / Spoon
Allow some pre-test code? (Score:1)
Would it be possible to pass something into prove to make it run some pre-test code? If given a certain flag, maybe have it look for a default config-type file in the current directory and require it before running?
Just a thought...thanks for the new tool!
'prove' is useful (Score:1)
prove -v -Iblib/lib -Iblib/arch t/01setup.t t/15table_attrs.t t/99cleanup.tRe:'prove' is useful (Score:2)
--
xoa