A command line tool and Semblance Runner that validates HTML using the W3C validator service.
java -jar dist/Affirmation.jar -config ./config.json
The Semblance.jar Semblance should be included in the classpaths.
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"
}
]
}
- 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