Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Using TAP::Parser for system/network monitoring style tests

by j0se (Pilgrim)
on Jul 08, 2013 at 15:07 UTC ( #1043135=perlquestion: print w/ replies, xml ) Need Help??
j0se has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks,

Inspired by David N. Blank-Edelman (p. 522) I am trying to implement a simple server/network monitoring system based on Test::More. I like the approach of Randal L. Schwartz but he used Test::Harness::Straps which now exists only for backwards compatibility.

How would I use the TAP::Parser for this purpose (lines 34 to 54 of Randal's LISTING TWO)? I found Re^3: Intercepting TAP output. Is there a better way?

Well done is better than well said. -- Benjamin Franklin

Comment on Using TAP::Parser for system/network monitoring style tests
Re: Using TAP::Parser for system/network monitoring style tests
by daxim (Chaplain) on Jul 08, 2013 at 16:18 UTC

      After having looked at the documentation I came to these conclusions:

      • Test::Server -- looks good but is missing the TAP parsing part I'm looking for
      • Test::System -- made for different purpose (from its documentation: "One of the things you need to keep in mind is that Test::System is NOT a monitoring system.")

      Thanks anyway.

      Well done is better than well said. -- Benjamin Franklin

        App::Prove or some other TAP harness would be used to collect the output of a Test::Server-based test suite. The harness (TAP-output-consumer) is separate from the TAP-generating tests themselves (TAP-output-producer). Perhaps I am not quite grokking what you are envisioning.

        --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043135]
Approved by marto
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-12-22 22:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls