[ANN] ASTest preview released
[ANN] ASTest preview released
- Subject: [ANN] ASTest preview released
- From: has <email@hidden>
- Date: Wed, 25 Sep 2002 22:04:21 +0100
'Lo All...
In a moment of frustration with most everything else at the moment, I
finally knuckled down and wrote a (semi)serviceable unit test framework for
AppleScript [1]:
http://www.barple.pwp.blueyonder.co.uk/astest/index.html
ASTest provides an easy way to organise and automate your testing
processes, providing a pre-built base into which you can slot your custom
testing code with a minimum of effort.
It still needs some work [2], but if anyone is interested then please check
it out and tell me what you think.
BTW, I'm also wondering what opportunities/advantages there might be for
integration into our favourite scriptable IDEs, Smile and Script Debugger.
If anyone has thoughts on this (or would like to tackle it themselves) then
drop us a note.
Cheers,
has
--
[1] Note that ASTest's interface differs a bit from the 'canonical' xUnit
family, but it's difficult to replicate stuff like introspection and
handler pointers in AS and I wanted to avoid any gnarliness in the
framework code. Shouldn't be any harder to use, however.
[2] Issues still to be ironed out:
- how to get around AS's rounding error woes [e.g. 0.7*0.7-->0.49, but AS
says this result is _not_ equal to a literal 0.49 which makes life rather
awkward]
- how best to address the baneful influence of 'global states' such as TIDs
and considering/ignoring blocks [there's already some provision for this,
but I'm undecided on the exact implementation]
- how to treat in-place changes to mutable data types [as deliberately used
by in-place list sorts, for example, but may also occur unintentionally
with all sorts of unforseen consequences]
- readable documentation ;)
- anything else I haven't thought of yet.
--
p.s. Code geeks will also find it an interesting study due to its
'event-driven' design and weird-and-wonderful tricks with inheritance:
there's at least one highly unorthodox (but seemingly quite legal)
technique in there that I'll bet nobody's _ever_ seen before.<g>
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.