3 ms·
That's what mock objects are for. You mock the object that would normally call the remote system, have it artificially fail, and use that to test clients of tha
by jdludlow 16y ago
That's what mock objects are for. You mock the object that would normally call the remote system, have it artificially fail, and use that to test clients of that object.
- samuel 16y agoSo you only test those cases you have thought can fail(which is compulsory to test anyway). The purpose of the Monkey Chaos is to trigger situations you haven't dreamed about. OK, it ain't perfect. Things usually doesn't fail in a uniformaly distributed way and you can't be sure you'll see a different kind of fail on production, but it sounds useful(yeah, and pretty cool) nonetheless.
- joevandyk 16y agoThe problem is "artificially fail". You need to ensure that the systems work in production even after real failures.
- jdludlow 16y agoWhy are people replying to me as if I ever said that Chaos Monkey was a bad idea? I was responding to a question about how to unit test remote system failures. Obviously that's not the only testing you're going to do.