The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Tapper::Testplan::Plugins::Taskjuggler - Main module for testplan reporting

SYNOPSIS

    use Tapper::Testplan::Reporter;

    my $foo = Tapper::Testplan::Reporter->new();

FUNCTIONS

get_platform_files

Get the list of platforms. Each platform is a hash ref. The hash contains: * name - the name of the platform * content - data about tasks on this platform as CVS

@return array - list of platform hashes

fetch_data

Get the data about platforms and data from cache or remote.

@return array - data about all platforms

get_testplan_color

Get a color code for the success of this test plan. The returned color codes have the following meaning. 'green' - successfully tested 'yellow' - not all tests run but not errors yet 'red' - at least one test failed 'black' - no test defined

@param hash ref - success overview

@return string - 'green', 'yellow', 'red', 'black'

prepare_task_data

Prepare a task overview for WebGUI.

@optparam hash ref - contains "start" and "end" DateTime object

@return array ref - contains hash refs

get_platforms

Get a list of platforms together with their associated tasks.

get_tasks

Get a list of testplans we want reports for.

@optparam hash ref - contains "start" and "end" DateTime object

@return array - contains DBIC result objects

send_mail

Send the text as mail.

@param string - report text

@return undef

choose_report

Choose which tasks are actually sent. Successful reports are only sent if they were not finished as the start of week. They are only checked because may have become red and in this case need to be reopened. Unsuccessful report are always sent and can not end this week. If needed the end date is adapted accordingly.

@param hash ref - report to choose @param array - reports already chosen for sending

@return success - new list of reports to sent @return error - exception

send_reports

Send a report based on the data received as parameter.

@param list of hash refs - contains reports

@return success - 0 @return error - exception

AUTHOR

AMD OSRC Tapper Team <tapper@amd64.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..

This is free software, licensed under:

  The (two-clause) FreeBSD License