Subject: | don't clobber Test::More names |
By using use_ok, is, ok, and isnt, you make it a little more annoying
than required to use Test::JavaScript in one file.
Either also export js_is, js_ok, and so on, or use an Exporter that will
allow the person using your module to rename. For example, use
Sub::Exporter like so:
use Sub::Exporter -setup => {
exports => [ qw(ok use_ok is isnt plan diag) ],
groups => { default => [ qw(ok use_ok is isnt plan diag) ] },
}
so that your user can say:
use Test::More 'no_plan';
use Test::JavaScript -default => { -prefix => 'js_' };
or something like that.
Otherwise, constantly writing this is annoying:
use Test::More tests => 20;
use Test::JavaScript;
ok("javascript" ... );
Test::More::ok(perl, ...);