develooper Front page | perl.modules | Postings from April 2012

Module submission Test::And::Output

Thread Next
From:
Perl Authors Upload Server
Date:
April 14, 2012 23:24
Subject:
Module submission Test::And::Output
Message ID:
201204150624.q3F6O7qx029450@pause.fiz-chemie.de

The following module was proposed for inclusion in the Module List:

  modid:       Test::And::Output
  DSLIP:       bdpOp
  description: Capture output during other tests
  userid:      JANDREW (Jed Lund)
  chapterid:   3 (Development_Support)
  communities:
    https://github.com/jandrew/Test-And-Output

  similar:
    Test::Output

  rationale:

    The goal is to capture output that is provided auxiliary to a test
    case for later testing. Rather that have to choose between testing
    for the output of a test case or the function of a test case, the
    function test can be run and then later output to STDERR or STDOUT
    from that function can be tested. Functions are provided to turn the
    capture of STDOUT and STDERR on an off so only certain tests are
    subject to output capture.

    Since the methods would also be handy to use for other directed
    reporting (such as logging) the methods are also built to use a
    global variable defined in the test module. Loggers would then be
    able to test for the existence of their logging global variable and
    copy to the buffer any data passed to logger output as well. (This
    functionality was added for a current darkpan module pending release
    to CPAN)

  enteredby:   JANDREW (Jed Lund)
  enteredon:   Sun Apr 15 06:24:06 2012 GMT

The resulting entry would be:

Test::And::
::Output          bdpOp Capture output during other tests            JANDREW


Thanks for registering,
-- 
The PAUSE

PS: The following links are only valid for module list maintainers:

Registration form with editing capabilities:
  https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=6d900000_93bf6e7c02912d0e&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
  https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=6d900000_93bf6e7c02912d0e&SUBMIT_pause99_add_mod_insertit=1
Peek at the current permissions:
  https://pause.perl.org/pause/authenquery?pause99_peek_perms_by=me&pause99_peek_perms_query=Test%3A%3AAnd%3A%3AOutput

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About