Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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

by reisinge (Friar)
on Jul 08, 2013 at 15:07 UTC ( #1043135=perlquestion: print w/replies, xml ) Need Help??
reisinge 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

Replies are listed 'Best First'.
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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1043135]
Approved by marto
Front-paged by tye
[choroba]: BTW, both the bands I play in performed on Friday (at the same event). Quite an exhausting experience.
[Corion]: choroba: Ooof! I can imagine that ;)
[Corion]: I think at a Perl workshop some years ago I gave two talks on the same day and after that decided to only submit one talk per event ;)
[LanX]: you play the triangle, right?
[choroba]: just one of its angles, in fact

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-03-27 11:42 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (319 votes). Check out past polls.