App::Y...:Notify(3pm)
π App::Yath::Plugin::Notify β the yath notification plugin, bestie π
okay so real talk, this page is from the Perl docs (that App::Y...:Notify(3pm) up top is just the man page name being β¨mysteriousβ¨, it's really App::Yath::Plugin::Notify). grab a snack, we're getting your test suite to text you when things go sideways. π«Ά
β¨ NAME β¨
App::Yath::Plugin::Notify β a plugin whose whole entire job is sending email and/or slack notifications. she's the messenger. the group chat admin of your test suite. π
πΈ DESCRIPTION πΈ
This plugin is used for sending email and/or slack notifications from yath. that's it, that's the gig. no cap. β¨
π¦ 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. and you can use the # HARNESS-META slack USER/CHANNEL to specify a slack user or channel that owns the test. like, tagging yourself in the post so you actually get pinged. iconic behaviour honestly. π
π RUNNING WITH NOTIFICATIONS ENABLED
$ yath test -pNotify ...
Also of note (and this part is lowkey the best part): most of the time you can just specify the notification options you want and the plugin will load as needed β as long as --no-scan-plugins was not specified. so she's self-inviting. main character energy fr fr. π
π§ 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. no url, no vibes, no notifications. periodt.
$ yath test --notify-slack-url https://hooks.slack.com/... --notify-slack-fail '#foo' --notify-slack-owner
π PROVIDED OPTIONS π
π COMMAND OPTIONS
β Notification Options
--notify-email foo@example.com,--no-notify-emailβ email the test results to the specified email address(es). this one can be specified multiple times, so go off, add as many as your heart desires π--notify-email-fail foo@example.com,--no-notify-email-failβ email the failing results to the specified email address(es). also specifiable multiple times, yes queen π«Ά--notify-email-from foo@example.com,--no-notify-email-fromβ if any email gets sent at all, this is who it will be from. the face on the envelope basically π--notify-email-owner,--no-notify-email-ownerβ email the owner of broken test files upon failure. add`# HARNESS-META-OWNER foo@example.com`to the top of a test file to give it an owner. you did write your name on your lunch in the fridge, right? π--notify-no-batch-email,--no-notify-no-batch-emailβ usually owner failures are sent as a single batch at the end of testing. toggle this to send failures as they happen. instant gratification mode π₯--notify-no-batch-slack,--no-notify-no-batch-slackβ usually owner failures are sent as a single batch at the end of testing. toggle this to send failures as they happen. same energy, different app π¬--notify-slack '#foo',--notify-slack '@bar',--no-notify-slackβ send results to a slack channel and/or user. can be specified multiple times, because you have many chats to spam π--notify-slack-fail '#foo',--notify-slack-fail '@bar',--no-notify-slack-failβ send failing results to a slack channel and/or user. also multiple times. go wild. π--notify-slack-owner,--no-notify-slack-ownerβ send slack notifications to the slack channels/users listed in test meta-data when tests fail. the meta-data is literally just the receipts π§Ύ--notify-slack-url https://hooks.slack.com/...,--no-notify-slack-urlβ specify an API endpoint for slack webhook integrations. remember: needed always for slack to do anything at all π¨--notify-text ARG,--notify-text=ARG,--message ARG,--message=ARG,--msg ARG,--msg=ARG,--no-notify-textβ add a custom text snippet to email/slack notifications. put your little signature in there, you deserve it β¨--notify-text-module ARG,--notify-text-module=ARG,--message_module ARG,--message_module=ARG,--no-notify-text-moduleβ use the specified module to generate messages for emails and/or slack. outsourced βοΈ but make it fashion π
π SOURCE π
The source code repository for Test2-Harness can be found at http://github.com/Test-More/Test2-Harness/. go lurk, we love a good repo stalk π
π«Ά MAINTAINERS π«Ά
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright 2020 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/
and that's the whole page bestie!! π this doc shipped with perl v5.40.1 and it's dated 2026-05-10 β so yes, this manual page is quite literally from the future, and we are obsessed πβ¨π
keep slaying, go notify somebody π¦πΈ
π¦ where this page comes from
- ubuntu stonking: libtest2-harness-perl 1.000172-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms