My apologies, but how to test using Test::MockObject seems simple according to the documentation. Where I fall down however is what and how to test in context.
Testing an object that munges text or does calculations is pretty straight forward I would think. You know the in and out going into the test. But what about a network client in which there isn't one method to test, but instead it's the whole connect/send/receive/disconnet conversation that needs to be tested? It is at that point that I don't understand or have a clue where to start, esp without a server to conect to or a mock server to use.
-=Chris
In reply to Re: Re: Best Approach: package module tests with tcp
by jk2addict
in thread Best Approach: package module tests with tcp
by jk2addict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |