The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Yath::Renderer::Notify - Renderer to send email and/or slack notifications

DESCRIPTION

This renderer is used for sending email and/or slack notifications from yath.

SYNOPSIS

IN A TEST

    #!/usr/bin/perl
    use Test2::V0;
    # HARNESS-META owner author@example.com
    # HARNESS-META slack #slack_channel
    # HARNESS-META slack #slack_user

You can use the # HARNESS-META owner EMAIL_ADDRESS to specify an "owner" email address. You can use the # HARNESS-META slack USER/CHANNEL to specify a slack user or channel that owns the test.

RUNNING WITH NOTIFICATIONS ENABLED

    $ yath test --renderer Notify ...

Also of note, most of the time you can just specify the notification options you want and the renderer will load as needed.

EMAIL

    $ yath test --notify-email-owner --notify-email-from user@example.com --notify-email-fail fixer@example.com

SLACK

A slack hooks url is always needed for slack to work.

    $ yath test --notify-slack-url https://hooks.slack.com/... --notify-slack-fail '#foo' --notify-slack-owner

PROVIDED OPTIONS POD IS AUTO-GENERATED

SOURCE

The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/.

MAINTAINERS

Chad Granum <exodist@cpan.org>

AUTHORS

Chad Granum <exodist@cpan.org>

COPYRIGHT

Copyright Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/