Need to see if your shared folder is taking up space on your dropbox đšâđ»? Find out how to check here.
Forum Discussion
dennis s.23
10 years agoNew member | Level 1
Unit testing
I would like to know how others have solved the Problem of Unit Testing an app that uses the Dropbox API without going on the network. I am using the swift, .net and PHP sdk's.
Can I run a local Dr...
Richard P.
Super User alumni
10 years agoYou should be swapping out the Dropbox parts for mocks, which return ideal responses - you shouldnt ever test more code than absolutely necessary in a unit test, and that includes third party libraries or integrations.
If the Dropbox part fails, thats an entirely different ball game, but you should be assuming the response your unit tests requires, which means successes and failures as you test those parts of your code.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!