Background: I developed a system which allows one to upload articles and products to remote wordpress instances. This system connects via Basic Authentication and the WooCommerce REST-API over HTTPS.
From the description alone you can see many parts are involved. As of last week, we ran into multiple problems associated with authentication and https. Whenever we introduce a fix for one bug, another bug will be introduced a few days later.
Thus I believe we need to perform integration testing. Note that we already have unit tests which mocks out request libraries and verifies if an API call is invoked with the correct arguments.
I don't exactly know how I should go about setting up integration tests for my situation. Currently, I see two systems are required to test the syncing of contents from our server to a client.
Currently, I can only think of one testing strategy that involves setting up a framework that generates disposable wordpress instances for syncing? However, I don't think this is the best choice given how unreliable distributed systems can be.
Can you think of other approaches to testing my system?