Is it common to write integration tests before writing unit tests? Is it conventional, a good idea, or best practice?
It just seems like a logical thing to do in my mind, especially when working with some 3rd-party API for the first time: You need to know how to use the 3rd-party software before you can test your own code for proper interaction with 3rd-party software--i.e., you have to test your understanding of how to interact with 3rd-party API's (via integration tests) before you can test your code for proper use (via unit tests that mock away the 3rd-party API), correct?
Am I on the right path?
EDIT
Thank you all for your answers. I just posted a similar / related question.