0

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?

Logan Bibby
  • 1,167
  • 1
  • 10
  • 31

1 Answers1

2

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.

Megan Speir
  • 3,745
  • 1
  • 15
  • 25
  • Thanks for the response, Megan! I really appreciate it! That post is actually where I started my quest. I can't really figure out how how to structure the tests to run sequentially or to have any type of order for the different scenarios. Some scenarios will just be a different key press and some will put back an error. :( – Logan Bibby Dec 10 '15 at 21:47
  • 1
    Hey Logan, try this post: http://stackoverflow.com/questions/17002707/a-nose-plugin-to-specify-the-order-of-unit-test-execution – Megan Speir Dec 10 '15 at 22:18
  • This looks great!! I'll give it a try first thing in the morning – Logan Bibby Dec 11 '15 at 04:14