Plugins?

What are plugins?

Plugins are modules that add or alter Test2 behaviors upon loading.

Plugins do not provide assertions.

Plugins are typically global in nature.

BailOnFail

Test2::Plugin::BailOnFail

This, and its brother 'DieOnFail' provide a feature that Test::Builder was unable to provide despite significant demand.

This plugin will issue a Bail-Out event (end of testing) after the first failed assertion.

DieOnFail

Test2::Plugin::DieOnFail

This, and its brother 'BailOnFail' provide a feature that Test::Builder was unable to provide despite significant demand.

This plugin will throw an exception after the first failed assertion.

ExitSummary

Test2::Plugin::ExitSummary

This plugin provides some useful diagnostics in some failure cases.

Example, bad plan:

SRand

Test2::Plugin::SRand


Make test runs consistent, but still test random behavior.


UTF8

Test2::Plugin::UTF8


UTF8 ALL THE THINGS!!! no, really...