URL parsers break on the parts nobody tests: a fragment after a query string, a repeated parameter, a host with non-ASCII characters. Turn on the deep shape and internationalised domains and you get all three in one batch.
What you can control
- Four shapes from a bare domain to a full URL with path, query and fragment.
- Fifteen TLDs, including newer ones like
.devand.toolsthat some validators still reject. - Internationalised domains produce hosts like
café.dev, which is where a URL parser's encoding handling shows. - Query parameters are built with
URLSearchParams, so encoding is correct.
Testing ideas
- URL parsing. Deep URLs with query strings and fragments test routing, analytics and link previews.
- Internationalised domains. Turn on IDNs to check punycode conversion and display.
- Possibly real. Brand-style domains may be registered by someone. Never let a test crawl them; use
example.comwhen a link must not resolve. - TLD variety. Mix
.dev,.appand.ioto test TLD allow-lists and email validators.
What this is not
Generated domains may coincidentally match a registered one. Do not send requests to them; they are for parsing and validation testing.