Skip Menu |

This queue is for tickets about the Test-JavaScript CPAN distribution.

Report information
The Basics
Id: 20261
Status: resolved
Priority: 0/
Queue: Test-JavaScript

People
Owner: kevinj [...] cpan.org
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.01
  • 0.02
  • 0.03
Fixed in: (no value)



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, ...);
Finally got around to getting Javascript::SpiderMonkey to compile so that I could fix this... It is fixed in 0.15