DEV Community

Discussion on: Nice tests to run in CI before deploying any website

Collapse
 
therealkevinard profile image
Kevin Ard

Love the horizontal scroll test! At least in part because those things are a pet peeve of mine lol.

If you have a large, uncertain inventory (eg: you manage several hundred client marketing sites or something like that), there's a good pre-script using sitemap-generator to crawl the site before test. I like to run the most basic sanity tests (response codes, valid markup, things like that - and now, horizontal scroll 😅) against every page, but you can't always know every page.

  1. Crawl sitemap with node
  2. Probably want to update that since you have it.
  3. Parse the fresh xml map into json
  4. Iterate the json with your every-page suite.
Collapse
 
andyli profile image
Andy Li

Using a sitemap is a good tip! Thanks for sharing :)