Is that ADHD or are you just procrastinating? You clearly recognize the issue. Maybe try Screen Time limits or changing your hosts file
It's import to identify and address the root of the problem rather than just the symptoms. Do you find your work rewarding? Will these unit tests help you to complete the goals you hold for yourself? Are you healthy enough to faciliate productive work?
Procrastination is a common behavior in people with and without ADHD. Procrastination alone is not an indicator of ADHD.
Likewise, someone who procrastinates does not fully understand the struggles of someone with ADHD.