Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

kylebalnave/affirmation

Repository files navigation

Affirmation

A command line tool and Semblance Runner that validates HTML using the W3C validator service.

Commandline Usage

java -jar dist/Affirmation.jar -config ./config.json

Dependencies

The Semblance.jar Semblance should be included in the classpaths.

Example Config

The below configuration will validate BBC Homepage and output a Junit Report

{
    "w3cServiceUrl": "http://validator.w3.org/check",
    "urls": [
        "http://www.bbc.co.uk/"
    ],
    "ignore": [
        "Syntax of list of link-type keywords",
        "Mistakes that can cause this error include"
    ],
    "reports": [
        {
            "className": "semblance.reporters.JunitReport",
            "out": "./reports/w3c.junit"
        }
    ]
}	

Config Explanation

  • w3cServiceUrl

The url to the W3C validation service.

  • urls

An array of urls to validate

  • ignore

An array of validation errors to ignore from failures.

  • reports

Report details for all results

About

A semblance runner that validates html and css using the W3C validation service.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors