Thursday, January 16, 2014

[android-developers] writing unit tests for some networking code and can't simulate network failures?

I'm trying to write some unit tests to handle network outages to see how well the software handles resumes, but can't find a way to simulate this when running a ServiceTestCase.

Has anyone ever done this w/ automated unit tests?
Or do you just do it manually by mucking w/ settings after a unit test starts?  This of course doesn't work at all w/ continuous builds :-(

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate