Re: Validator no longer includes counts
"Michael[tm] Smith" <[email protected]> Mon, 27 Jul 2015 09:36:52 +0900
| Newsgroups | gmane.org.w3c.validator |
|---|---|
| Message-ID | <[email protected]> |
--gDGSpKKIBgtShtf+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable "Cutchins, Stephen" <[email protected]>, 2015-07-24 14:= 03 +0000: > Archived-At: <http://www.w3.org/mid/DM2PR10MB030133DDBE2C1D909C424E88F681= [email protected]> >=20 > Hi, >=20 > We have been using Validator with an automated test script for a Federal > project. Roughly a week ago or so, the counts were removed from > Validator which is causing our automated test scripts to fail since this > is what we were checking against. >=20 > Is there a way to add the counts back? We would very much appreciate it! Do your test scripts need the precise count or do they just need to know whether the count is zero or non-zero? If they only need to know if they=E2=80=99re zero or non-zero, then an easy= way to do that is just to use the gnu=3Dout output format. Because in that case, if you only care about errors, and you check a document that has no errors, it will return nothing at all; for example: https://validator.w3.org/nu/?doc=3Dhttps://sideshowbarker.net&out=3Dgnu&l= evel=3Derror That just returns an empty document, which is what=E2=80=99s expected when = the checker finds no errors to report. Compare that to the output from this: https://validator.w3.org/nu/?doc=3Dhttps://accenturefederal.com&out=3Dgnu= &level=3Derror If you also care about warnings, you can omit the =E2=80=9C&level=3Derror= =E2=80=9D parameter: https://validator.w3.org/nu/?doc=3Dhttps://accenturefederal.com&out=3Dgnu Either way, your test script could simply just check to see if the result is an empty document. If the result isn=E2=80=99t an empty document, then t= hat means the checker emitted errors and/or warnings. =E2=80=94Mike --=20 Michael[tm] Smith https://people.w3.org/mike --gDGSpKKIBgtShtf+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJVtX0kAAoJEIfRdHe8OkuVQ7EQAJ4tTSqhuCElL2wJvptt/u7d hdZTw+09/QZiTc/+Z0NEkWOtHjzTKPeD7i4K8za4v/hYBnsr3M0WtG+Is2XxeK29 9YCprPtzd82+HeIyzJB/RrOx9yn0hwjmRCy8PLjjytgBGQbTLiPSoSIy60fGilLw Fdm5GvgEBU0yjTBLT43YI8w1QKUC+oIhVWfuEbQNaSfTSOjfOxlBxWZile3NurrM uNUBk1M7tBtcLs3KYivryBHxhy8G/d+kmQx/MkhAo+mvvZa52FbO/7aQcHLiMTdN M6snLr3tqRDJGaPuGIO7uQbkIlLLpTg6h3GtYqK/yWvaMO3TmS25r9pSigq3X42f Ag/SFM/yQqwLqGKaEEBu8qSuYpOMVsRmk0tx44fZIWcn7mx2FLREf8wb0KmeZL+/ XmHjZXmC/iQnH6IRxQGsKA0sxFAZnKjE4ZbfYquFmLWVN67qFpVobOiXDvls/V80 nkHCFvaRrU3ubCpU9/QR6LJ1zpBG2mmfgnGnmMDxk1F8bsZNgfvwBBPWZSbCYl9x rxaMKUFtF7y8KFoaSYVxY094MWMZoDwgnZwiseKSgGwFIe2RyI7Nk2rO+U4C4Xc8 DMsdgWX8CmVtzoEyq0r1/VenrAOIfAehZ2Pjd+0eqHd8GcjkyzYTCIpn+GT244qA N3O6D3yYMTZWoZkS5Ue1 =tS30 -----END PGP SIGNATURE----- --gDGSpKKIBgtShtf+--