Following up on my recent messages, I'm happy to report that I was able to
implement both a filter on the test method name, and a verbose mode that prints
the name and execution time for each of the test method.
I did this by subclassing TestRunner, and overriding the methods do_run(),
start_test() and end_test() so that they do extra stuff before calling the same
method of the super class.
- do_run() filters the tests in the test suite before passing it to
SUPER::do_run()
- start_test() takes note of the start time and prints the name of the test
method before invoking SUPER::start_test()
- end_test() takes note of the end time, calculates the elapsed time, prints
it, and forwards to SUPER::end_test()
Alain
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Perlunit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perlunit-devel