03 Apr 2016 17:44:24 UTC
- Distribution: Test-Reporter-Transport-Metabase
- Module version: 1.999010
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (3837 / 1 / 0)
- KwaliteeBus factor: 1
- 46.23% Coverage
- License: apache_2_0
- Perl: v5.6.0
- Activity24 month
- Download (16.43KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userDAGOLDEN David Golden
- COPYRIGHT AND LICENSE
Test::Reporter::Transport::Metabase - Metabase transport for Test::Reporter
my $report = Test::Reporter->new( transport => 'Metabase', transport_args => [ uri => 'http://metabase.example.com:3000/', id_file => '/home/jdoe/.metabase/metabase_id.json', ], ); # use space-separated in a CPAN::Reporter config.ini transport = Metabase uri http://metabase.example.com:3000/ ...
This module submits a Test::Reporter report to the specified Metabase instance.
This requires a network connection to the Metabase uri provided. If you wish to save reports during offline operation, see Test::Reporter::Transport::File. (Eventually, you may be able to run a local Metabase instance to queue reports for later transmission, but this feature has not yet been developed.)
Unlike most other Transport classes, this class requires transport arguments to be provided as key-value pairs:
my $report = Test::Reporter->new( transport => 'Metabase', transport_args => [ uri => 'http://metabase.example.com:3000/', id_file => '/home/jdoe/.metabase/metabase_id.json', ], );
uriargument gives the network location of a Metabase instance to receive reports.
id_fileargument must be a path to a Metabase ID file. If you do not already have an ID file, use the metabase-profile program to create one.
This creates the file metabase_id.json in the current directory. You can also give an
--outputargument to save the file to a different location or with a different name.
clientargument is optional and specifies the type of Metabase::Client to use to transmit reports to the target Metabase. It defaults to Metabase::Client::Simple.
These methods are only for internal use by Test::Reporter.
my $sender = Test::Reporter::Transport::File->new( $params );
newmethod is the object constructor.
$sender->send( $report );
sendmethod transmits the report.
Please report any bugs or feature requests through the issue tracker at https://github.com/cpan-testers/Test-Reporter-Transport-Metabase/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
git clone https://github.com/cpan-testers/Test-Reporter-Transport-Metabase.git
David Golden <email@example.com>
Richard Dawe <firstname.lastname@example.org>
Chris 'BinGOs' Williams <email@example.com>
David Golden <firstname.lastname@example.org>
Karen Etheridge <email@example.com>
This software is Copyright (c) 2016 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
Module Install Instructions
To install Test::Reporter::Transport::Metabase, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::Reporter::Transport::Metabase
For more information on module installation, please visit the detailed CPAN module installation guide.