comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » unit testing for IDL?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Unit Testing [message #52057 is a reply to message #43473] Wed, 03 January 2007 14:51 Go to previous messageGo to previous message
Robbie is currently offline  Robbie
Messages: 165
Registered: February 2006
Senior Member
Dear Mike,

Thanks for the feedback. I think my key problem is that I haven't used
unit testing in other languages before. I would like to make something
which compliments the incremental compiling nature of IDL and I want to
avoid writing a .pro file parser.

> 1. Why isn't it object-oriented?
I think that writing objects in IDL is quite clumsy. I guess I haven't
had the need for unit tests to be based inside objects yet. I'm
concerned that using OO would deviate from unit tests being short and
sweet.

> 2. You say "The final aim of this project is to fully support xUnit
> testing automation, including support for fixtures." How will you
> support fixtures?
I was thinking of getting fixtures to SetUp() and TearDown() a common
block. I could also use keywords to do the same sort of thing. This is
where I should probably be using OO.

> 3. How does "unitException" have access to local variables?
I can't believe I missed that one! I should probably stick to using
wrappers of CALL_PROCEDURE, CALL_FUNCTION and CALL_METHOD.
unitExceptionFunction just doesn't roll off the tongue too well :)

> 4. Why do the test names end in an ordinal? Why not
> hashtable__testAdding, etc?
I've developed a nasty habit of using ordinals in the suffix. I guess I
shouldn't tempt anyone else to do the same thing. Any procedure,
function or method with __test in it would become a unit test. Perhaps
I should allow unitSearch specify exclusions.

Thanks

Robbie
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 'vectorizing functions'
Next Topic: How to save TIF in BIL or BIP ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 15 04:42:51 PDT 2025

Total time taken to generate the page: 1.83994 seconds