Perl, PostgreSQL hacker; US politics junkie; Webapp developer; Portvangelist; profane iconoclast.
On CPAN see: DWHEELER [cpan.org].
I'm pleased to announce the first alpha release of my port of Test::Simple/Test::More/Test::Builder to JavaScript. Download it now and let me know what you think!
You can see what the tests look like by loading the files in the tests/ directory into your Web browser. This is my first stab at what I hope becomes a complete port. I could use some feedback/ideas on a number of outstanding issues:
skipAll(), BAILOUT(),
and skipRest() do not work.SKIP: and TODO:) are lexical in JavaScript.
Therefore I cannot get at them from within a function called from within a
block (at least not that I can tell). It might be that I need to just pass
function references to skip() and todo(), instead.
This is a rather different interface than that supported by Test::More, but
it might work. Thoughts?Test._ending() to finish running
tests. This is because there is no END block to grab on to in
JavaScript. Suggestions for how to capture output and append the output of
_ending() are welcome. It might work to have
the onload event execute it, but then it will have to look for
the proper context in which to append it (a <pre> tag, at
this point).level() will have any part to play.loadOk() (equivalent to
Test::More's use_ok() and
require_ok() subroutines).More details are in the ToDo section of the TestBuilder docs.
Let me know what you think!
hhhmmm... (Score:1)
-Scott McWhirter- | -kungfuftr-
"JAWK - Just Another Whiny Kid"
Re:hhhmmm... (Score:1)
If you mean this jsunit [edwardh.com], then read this [perl.org].