2017 © Pedro Peláez
 

library web-tester

A collection of PHPUnit tests for public website sanity check

image

mamchenkov/web-tester

A collection of PHPUnit tests for public website sanity check

  • Tuesday, September 16, 2014
  • by mamchenkov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Web-Tester

Web-Tester is a collection of the PHPUnit tests which can be executed against any publicly available website. These are thrown together to make sure the most common things aren't missed out when deploying web projects:, (*1)

  • 200 status code for the website front page
  • 301 redirect for www/no-www
  • 200 status code and icon content type for the favicon.ico
  • 200 status code and text/plain for the robots.txt
  • At least one Sitemap URL in robots.txt
  • 200 status code for any Sitemap URL in robots.txt

Install

Install with Composer:, (*2)

{
    require: {
        "mamchenkov/web-tester": "dev-master"
    }
}

Usage

Run all tests with default options for a given domain:, (*3)

$ vendor/bin/web_tester.sh http://www.domain.com

More control is available via web_tester.json file. Here is an example:, (*4)

{
    "site": "http://www.google.com",
    "timeout": "2",
    "skip": [
        "WebTester\\BasicTest",
        "WebTester\\FaviconTest",
        "WebTester\\RobotsTest"
    ]
}

The URL of the site can be ommitted when it is present in the configuration file:, (*5)

$ vendor/bin/web_tester.sh

TODO

  • [ ] HTTPS check
  • [ ] Custom 404 page check
  • [ ] Custom 500 page check
  • [ ] RSS feed autodiscovery check
  • [ ] Absense of 404 links (recursive? long?)
  • [ ] HTML/CSS/JS being minimized (recursive? long?)
  • [ ] Images are optimized (recursive? long?)
  • [ ] Response times check (recursive? long?)
  • [ ] SEO checks (page title, description, h1 tags, ALT tags)

The Versions

16/09 2014

dev-master

9999999-dev https://github.com/mamchenkov/Web-Tester

A collection of PHPUnit tests for public website sanity check

  Sources   Download

GPL-2.0

The Requires

 

phpunit testing