All,
I’m using Cucumber for acceptance testing a Ruby command line utility. This utility pulls data in from a webservice.
I understand Cucumber is for acceptance testing and tests the whole stack but I still need to provide consistant replies from the webservice.
Should I mock the webservice? If yes, how? What’s the best approach here?
Cheers,
Gordon
So after a bit of thinking! Then a bit of googling I found FakeWeb. Does exactly what I needed!
Check out Dr Nic’s slides – especially slide 17.
And it was easy – in under 2 hours I’ve managed to set it up, rewrite my tests, get everything passing and check it all back in to git hub!!
HTH others!