[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binarycloud-dev
Subject:    [binarycloud-dev] Some more unit tests...
From:       Manuel Holtgrewe <purestorm () teforge ! org>
Date:       2003-11-28 0:11:44
[Download RAW message or body]

Hi

I just comitted two more unit tests to ensure that node:include
overrides the "id" and "template" attribute of the included node and one
to check the "owner" concept of Node.

Note, however, that testing Node trees is a bit complicated since it is
IMO no use to use "serialize()" to serialize the node tree but more
effective comparing the output of two nodes and pushing needed variables
there (no recursive structure, the strings are nicely plain flat ;-).

So the testing is pretty indirect but should be sufficient. Have a look
at the unit test page in "testsite". Adding a throwing "include()" will
correct the errors in the "fail" test: Node will be able to detect
noexistant files again.

Manuel

-- 
Unix definitely is a user friendly operating system.
- It is only picky with its friends.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@binarycloud.tigris.org
For additional commands, e-mail: dev-help@binarycloud.tigris.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic