Hi Gabor, * Gabor Szabo <[EMAIL PROTECTED]> [2007-03-28 17:35]: > In line with the discussion of TAP I would like to show a use > case I would like to be able to handle. I would like to be able > to report certain information in table format in (or instead > of) the diag call.
TAP is a protocol. You want a particular presentation for the data. These things do not belong together. Write a test module that collects records and dumps the lot using the new YAML diagnostics format. Invent a way to include an annotation saying “this array of hashes is a table.” (Or whatever the data structure looks like.) Write a harness (or subclass of a harness) that understands your annotation and renders a table from the data when it sees the annotation hint. Or if you want, write the test module to produce a representation and include it in the TAP using the logging format for human-readable stuff. (Note that this gives you less flexibility in the long run.) Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>