Validating website HTML, CSS, and links from the command line

When working on a long running projects, it’s easy to lose track of HTML and CSS standard compliance.  Also, link rot is a common occurrence.  Gladly, there are command line tools that can be executed on a regular basis (think weekly or monthly cron jobs), that would check the site and report any issues with it.  Here is one of the ways.

Installation on Fedora:

yum install linkchecker
yum install python-tidy
yum install python-cssutils

Example command line:

linkchecker -t20 --check-html --check-css http://mamchenkov.net

Obviously, check the manual of linkchecker for more options.

Mobile Web Monitoring Advanced Scripting (MITE)

Mobile-Web-Monitoring-MITE

Reduce your test time with MITE test automation. MITE comes with a script recorder that lets you capture each step as you navigate a mobile website. Record once and re-run the script on any device profile, repeating each action and collecting unique mobile Web optimization data for each selected device.

Start recording any time during a session by clicking the record icon on the ribbon. You can add validation checks for every step by simply right-clicking the script and selecting the validation check.

Not only does automated testing save time, but it also guarantees a consistent test methodology. Once you’ve completed mobile Web optimization, upload your script into your own MyKeynote portal and a get a new perspective on the availability of your mobile site with a week of free monitoring.

PEG.js – Parser Generator for JavaScript.

PEG.js is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages and build transformers, interpreters, compilers and other tools easily.