[Webtest] [dev] refactoring
Paul King
webtest@lists.canoo.com
Fri, 05 Aug 2005 01:08:42 +1000
Denis N. Antonioli wrote:
>> However we shouldn't need to do both of the following:
>>
>> step.setContext(context)
>> step.doExecute(context)
>>
>> Getting rid of one or the other would be good.
>
>
> gosh.
>
> dna
>
It's not as bad as I thought, setContext(context) is only
used in tests - however I find it hard to imagine that we have
nearly 60 tests which require it to be set using setContext
rather than via doExecute(context).
I would still be keen to split src files into test and
production (as per Marc's sugggestion) to make this kind
of thing more obvious. Current IDEs automatically merge
packages for you when viewing things and it would allow
us to gather better metrics and checks from our IDEs and
better distinguish between files which are purely for test
purposes so that they could be removed from some of our jars
in the future if we so desired.
Paul.