renggli at iam.unibe.ch
Tue Jul 12 20:55:45 MEST 2005
> Hi, could you explain me better what are the problem with actions
> please? Is it hard to test because are html application or is hard
> to do the assert?
Yes, exactly it is hard to check the resulting html. Of course you
could parse it and check for specific tags and contents, or you could
write regular-expressions ...
What is more, the actions in SmallWiki 1 are badly designed, since
they heavily couple the business logic and the swazoo html
generation. Sadly it is almost impossible to test the actions wihout
dealing with request/response ...
SmallWiki 2 takes a different approach to avoid this problem and thus
the actions (actually these are commands following the design
patterns book) can be easily tested.
More information about the SmallWiki