[zeromq-dev] Testing framework
john skaller
skaller at users.sourceforge.net
Mon Jan 23 17:02:51 CET 2012
On 24/01/2012, at 2:02 AM, Staffan Gimåker wrote:
>>
>> My belief here: for systems like 0MQ units tests are all but worthless.
>> The behaviour of the functions depends critically other functions,
>> so you can't really test any of them independently. Worse, you cannot
>> test communications and asynchronous behaviour with an isolated
>> subroutine.
>
> I don't disagree that automated or semi-automated
> integration/performance tests would be nice to have, BUT unit tests have
> a role to fill as well.
>
> Traditional unit tests work perfectly well for detecting a lot of errors
> (the easy ones). For example, it's a good fit to test that filtering
> works as it should or that someone didn't accidentally break the REQ-REP
> functionality.
Yes but that isn't a unit test. It's an integration test :)
You need at least two threads to do it, probably two processes.
--
john skaller
skaller at users.sourceforge.net
More information about the zeromq-dev
mailing list