When I built the downloader on ramrom.io, I needed a way to test it properly before calling anything live. The obvious shortcut is sample URLs — the ones in provider docs, the ones in blog tutorials, the ones other people paste into forum threads. I tried that first, and it wasted more time than it saved.
The problem with a sample URL is that you have no idea what it points to any more. The video might be deleted. The account might have gone private. The post might be region-locked, or the creator might have removed it six months ago. When a test fails, you cannot tell whether your code is broken or the sample is dead, and that is the worst kind of debugging: you are chasing a fault that might not exist.
So I changed the rule. Every test link I use is a real link to content I own. My own TikTok clips. My own Instagram reels and photo posts. My own Facebook videos. If a test fails, I can open the original post in the app and see with my own eyes that it is still there, still public, still exactly what I think it is. That removes one whole variable from the equation, and the variable it removes is the one that wastes the most time.
Owning the test content has a second benefit: I know what the right answer is before I run the test. I know whether that reel has sound or not. I know whether the TikTok post is a video or a photo slideshow. I know the Facebook link is a reel and not a Watch page, because I posted it myself. So when resolve.php comes back with a format list, I can compare it against the truth instead of guessing whether the provider got it right.
My test routine is deliberately boring. I keep a short list of my own links, one for each case that matters: a TikTok video, a TikTok photo post, an Instagram reel, an Instagram photo post, a Facebook reel, a YouTube short, and a YouTube long video. Before any upload, I run each one through the live site with curl first, then in a real browser on my phone. The curl run checks the plumbing — status code, the JSON shape, the download proxy handing back a real file. The phone run checks what a visitor actually experiences, because a download that works in a terminal and fails in Android Chrome is not a working download.
One detail I learned the hard way: never test with a link someone else sent you in a chat, even if it works today. Shared links die without warning, and when they do, your test suite silently starts testing nothing. A test that passes against a dead link is worse than no test at all, because it tells you everything is fine when you have no evidence either way.
I also test the failures, not just the successes. A deleted video of mine, a private post, a link to a platform I do not support yet — each one should produce an honest message that says what happened, not a spinner that never stops and not a generic error. Testing the unhappy paths with links I control means I can check the exact wording the visitor sees, and I can fix it before a real visitor ever meets it.
The whole habit costs nothing. No test account, no fixture server, no mock provider responses. Just a small list of my own links, run the same way every time, on the live site, on a real phone. It is the least glamorous part of building the tool, and it is the part that has caught the most real bugs — because when a test uses a link I own, a failure means my code is wrong, and there is nowhere else for the blame to go.

