A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.
To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).
Validator.nu validator-tester.py: Difference between revisions
(Link to full-stack) |
m (s/http/https/) |
||
Line 13: | Line 13: | ||
===--service=''URI''=== | ===--service=''URI''=== | ||
Specifies the root URI of the service to be tested. Defaults to <code> | Specifies the root URI of the service to be tested. Defaults to <code>https://html5.validator.nu/</code>. | ||
==''command''== | ==''command''== |
Revision as of 08:44, 21 November 2014
python validator-tester.py config command command-arguments
See Validator.nu Full-Stack Tests
config
The following configuration parameters are available:
--db=filename
Specifies the name of the database file. Defaults to db.json
in the current working directory.
--service=URI
Specifies the root URI of the service to be tested. Defaults to https://html5.validator.nu/
.
command
dumpref
Dumps the reference data for a URI from the database into a JSON file.
Takes two arguments: URI and file name.
dumpuri
Dumps the result data for a URI as reported by the remote service into a JSON file.
Takes two arguments: URI and file name.
adduri
Adds the remote service output for a URI into the database.
Takes one argument: URI
deluri
Deletes the reference data for a URI from the database.
Takes one argument: URI
checkuri
Compare the service output for a URI against the reference data for the same URI in the database and print discrepancies.
Takes one argument: URI
checkall
Runs checkuri for each URI recorded in the database.
Takes no arguments.
mergedb
Reads an external database file (e.g. one written by dumpref) and adds the entries to the reference database overwriting existing entries in the case of key overlap.
Takes one argument: file name
command-arguments
The arguments to the command as documented for each command.