Re:Why I don't mock
by AlexanderDhoore on Wednesday May 28, 2014 @09:21AM
(#7809733)
We have something like this at the company I work for. We have a "simulation layer" which wraps ALL third party code. This lets us simulate the failure of file system calls, network drivers... And we use it to write our tests.
I did this for a gdb wrapper I wrote. It logs all the stdin/stdout between itself and gdb and between itself and the user. You can then take that log file and replay it to simulate both the user input and the gdb output.
Re:Why I don't mock
by lucaspiller on Wednesday May 28, 2014 @09:28AM
(#7809758)
Although not quite the same, VCR for Ruby does this for network requests.
Is anyone aware of a solution like this? I certainly don't have time to create it but I would definitely find it useful.