Skip to content

Testing

phil/sitemap
AreaWhat is covered
Url, Alternate, Image, ChangeFrequencyEvery field and its bounds, the addresses refused, hreflang spellings, the images of a page
SitemapPages by section, one section only, files and numbered parts, the bounds of a file, sections refused
XmlWriterThe exact XML of a file and of an index, escaping, an index without dates, an index entry that is not an address
vendor/bin/phpunit packages/sitemap/tests

Benchmarks

XmlWriterBench writes files of 1,000, 10,000 and 50,000 pages, plain or with alternates and images. From the monorepo root:

composer bench -- packages/sitemap/tests/Benchmark