sedusedan has asked for the wisdom of the Perl Monks concerning the following question:
I'm wondering if someone can point me to some simpler examples of testing a Test::Builder-based test function. I glanced at Test::More's tests once a while back and decided not to do it yet because they looked pretty hairy. But I recently got hit with a bug in my test function (passing things which should not have passed).
UPDATE: Perhaps I should've said "proper and simple" instead of just "simpler". I know that one of the straightforward ways to do this was to run the test in a subprocess and capture/parse its TAP output. Somehow I was led to think that Test::Builder->create is the proper way. Am I wrong? Anyway, I'm going to be pragmatic for now.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Testing test function
by kcott (Archbishop) on Sep 26, 2013 at 02:11 UTC | |
by sedusedan (Pilgrim) on Sep 26, 2013 at 11:22 UTC | |
by choroba (Cardinal) on Sep 26, 2013 at 11:32 UTC | |
by sedusedan (Pilgrim) on Sep 27, 2013 at 06:18 UTC | |
|
Re: Testing test function
by tobyink (Canon) on Sep 26, 2013 at 20:09 UTC | |
by sedusedan (Pilgrim) on Sep 27, 2013 at 06:24 UTC | |
by sedusedan (Pilgrim) on Sep 27, 2013 at 17:20 UTC | |
|
Re: Testing test function (testing library test suite)
by Anonymous Monk on Sep 26, 2013 at 01:22 UTC | |
by sedusedan (Pilgrim) on Sep 26, 2013 at 01:56 UTC | |
|
Re: Testing test function
by DrHyde (Prior) on Sep 26, 2013 at 10:54 UTC | |
by sedusedan (Pilgrim) on Sep 26, 2013 at 11:14 UTC | |
by DrHyde (Prior) on Sep 30, 2013 at 12:42 UTC | |
|
Re: Testing test function (fork)
by tye (Sage) on Sep 26, 2013 at 14:42 UTC |