Reputation: 1187
I've created a Python Twilio app which interacts with a caller through many different URLs. It's made to be stateless and deployed on a load balanced system with a database backend to keep up with stateful call data.
My problem is testing. As I was developing, I was using the Firefox add-on HttpRequester to make requests as I went. That worked fine until I made a change in an earlier controller and had to run all the the requests again. It also made it nearly impossible to test scenarios (pressing 1 instead of 2).
I've played with UnitTest a bit, but no luck since there's no guarantee of the order the tests are ran and it's really against the point to have the tests rely on one another.
How do you normally test your Twilio apps?
Upvotes: 0
Views: 105
Reputation: 3811
Logan, hi! Megan from Twilio here.
I'm not sure what framework you're working with but, Unit Testing Your Twilio App Using Python's Flask and Nose is detailed tutorial using the nose test runner to test against Twilio webhook endpoints.
Hope this helps.
Upvotes: 2