I'm pleased to announce the second alpha release of TestSimple, the port of Test::Builder, Test::Simple, and Test::More to JavaScript. You can download it here. This release has the following changes:
eqArray()
and eqAssoc()
functions from
TestMore per suggestion from Michael Schwern. The problem is that these
are not test functions, and so are inconsistent with the way the rest of
the functions work. isDeeply()
is the function that users
really want.eqSet()
to isSet()
and made it into a
real test function.skip()
, todoSkip()
,
and todo()
. These are a bit different than the Perl
originals originals so read the docs!skipAll()
and BAILOUT()
using
exceptions and an exception handler installed
in window.onerror
.idattribute set to
test, such as
<pre id="test">
. The
window.onload
handler will find it and append the final test
information.skipRest()
in TestBuilder and TestMore. This
method is stubbed out the Perl original, but not yet implemented
there!The only truly outstanding issues I see before I would consider
these modules
ready for production use are:
STDERR
and STDOUT
for
this purpose. We'll probably have to do it by overriding
document.write()>
, but it'd be good to allow users to define
alternate outputs (tests may not always run in a browser, eh?). Maybe we can
use an output object? Currently, a browser and its DOM are expected to be
present. I could really use some advice from real JavaScript gurus on this
one.Feedback/advice/insults welcome!
Re:404
Theory on 2005-04-12T22:13:05
Fixed, thanks.