12 Jun 2021 11:58:42 UTC
- Distribution: Test-Reporter-Transport-Socket
- Module version: 1.02
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (1297 / 0 / 0)
- KwaliteeBus factor: 1
- 20.43% Coverage
- License: perl_5
- Perl: v5.6.0
- Download (15.51KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:
- COPYRIGHT AND LICENSE
Test::Reporter::Transport::Socket - Simple socket transport for Test::Reporter
my $report = Test::Reporter->new( transport => 'Socket', transport_args => [ host => 'metabase.relay.example.com', port => 58008, ], ); # use space-separated in a CPAN::Reporter config.ini transport = Socket host metabase.relay.example.com ...
This is a Test::Reporter::Transport that sends test report data serialised over a TCP socket.
The idea is to keep dependencies in the tester perl to a bare minimum and offload the bulk of submission to a Metabase instance to a relay.
Unlike most other Transport classes, this class requires transport arguments to be provided as key-value pairs:
my $report = Test::Reporter->new( transport => 'Socket', transport_args => [ host => 'metabase.relay.example.com', port => 58008, ], );
The name or IP address of a host where we want to send our serialised data.
This may also be an arrayref of the above. A connection will be attempted to each item in turn until a successful connection is made.
The TCP port on the above
hostto send our serialised data.
These methods are only for internal use by Test::Reporter.
my $sender = Test::Reporter::Transport::Socket->new( %params );
newmethod is the object constructor.
$sender->send( $report );
sendmethod transmits the report.
David A. Golden (DAGOLDEN) Richard Dawe (RICHDAWE) Chris Williams (BINGOS) This module inlines Config::Perl::V Copyright (C) 2009-2010 H.Merijn Brand
Chris Williams <firstname.lastname@example.org>
This software is copyright (c) 2021 by David A. Golden, Richard Dawe, Chris Williams and H.Merijn Brand.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Test::Reporter::Transport::Socket, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::Reporter::Transport::Socket
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|