Thank'you Markus, I think you are right, but probably there are some cases
where a swithc could help...
we develop a web application, for instance, we test the debug version in the
local machine then we deploy the release version on the remote server, the
remote server has SMTP on 127.0.0.1, the local machine has not
so, I would like to skip only the last code line (the mail sending action)
in the test case and still return true so the test is passed, the critical
code that could crash and should be tested is before!!!!
.... even if I'd a mail server on my computer, there is not point to send
email while testing !!
any idea ?
thanks, Davide.
|