Hi everyone, I have been using Perl-Unit happily for some years now, and over the years, I have developed a number of useful helper methods in a subclass of TestCase called TestCaseWithHelpers.
Most of those are in the vein of special assertion methods. For example: assert_string_equals($got_string, $exp_string, $message): * Compares two strings. If they are not identical, prints the two and shows the location of the first difference found assert_structures_are_equal($got_struct, $exp_struct, $message): * Does a deep compare of two data structures, and if they are not the same, prints a human readable serialization of both structures, with the location of the first difference found. * Structures can be any nested combination of scalars, arrays, hashtables and objects. I would be willing to share those enhancements in the official version of Perl-Unit, if it was deemed appropriate. All those methods are of course unit tested ;-). I am also interested in helping out to implement two improvements that I would like to add to Perl-Unit: - Possibility to filter TestCase or test methods by passing an argument to the test runner with a string that should the TestCase class or the test method should match. - Possibility to ask for a verbose mode where the test runner will print the name of every test method it runs, as well as the number of seconds that the test took to run. In order to implement those two improvements though, I might need some help from people who know that code better than I do. Have a good weekend. Alain Désilets Agent de recherche | Research Officer Institut de technologie de l'information | Institute for Information Technology Conseil national de recherches du Canada | National Research Council of Canada ------------------------------------------------------------------------------ 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
