Releases: wjdp/htmltest
Releases · wjdp/htmltest
v0.5.0
Nothing overly exciting in this release, mostly under-the-bonnet internal tweaking.
Bug Fixes
- #52 Ignore links with
rel=dns-prefetch
. - #54 Add handling for DirectoryPath not existing or being a file. CLI now outputs nicer errors for FilePath and DirectoryPath problems.
Development Enhancements
- #58 Bring in govcr, majority of unit tests that make network calls now use pre-recorded responses.
v0.4.1
v0.4.0
New Features
- Implemented DOCTYPE checking. We check if a doctype is present and in the right place, at the very top. We fail the document if one cannot be found. An option
CheckDoctype
can be used to enable/disable this behaviour. It is enabled by default. - Optionally require the DOCTYPE matches the HTML5 spec, set
EnforceHTML5
to enable this. - Allow both file and directory as
<path>
in command. We pass these as either aDirectoryPath
orFilePath
option internally.
Minor Enhancements
- When testing a directory we report the number of files tested after a pass or fail.
Changes
⚠️ Three options have been renamed, if you use them this is a breaking change. See the table below.
Old | New |
---|---|
ProgDir |
OutputDir |
LogFile |
OutputLogFile |
CacheFile |
OutputCacheFile |
v0.3.1
Minor Enhancements
- Add short versions of
--log-level
,--conf
and--version
,-l
,-c
and-v
. - Add
-s --skip-external
option. Disables CheckExternal, rather useful when running locally and calling many times. - Combine config options and command line arguments. CL arguments take presidence over config file options.
- Improve error message when config file is specified but not found
- Dump resolved options to output when debug enabled.
Bug Fixes
- Fix issue where specifying
--log-level
would cause certain crashes.
v0.3.0
- Cleaner errors when the tool cannot find a config file and other situations where it would cause a stack trace. All shown in spectacular error message red. #29
- Checking various meta tags including refresh links, we check validity of the tag and that the reference works. #24
- Blank internal hashes (i.e.
<a href="#"...
throw an error by default. A specific optionIgnoreInternalEmptyHash
has been added to disable this behaviour. Turning offCheckInternalHash
will skip this check also. #31 - Bump the version of Go used from 1.7.3 to 1.7.4
v0.2.0
- Check many more tags and attributes with new
checkGeneric
function, +13 types. See the wiki Tag page for supported tags. - Error output now sorted by document, makes concurrent output legible. New option
LogSort
controls this. - Upgrade version of Go from 1.6.x to 1.7.x. Compiled binaries are now smaller. (from ~9MB to ~6MB).
v0.1.2
v0.1.1
v0.1.0
First public release.
The software is functional and has a decent test suite, however it still should be treated as alpha grade.
I've got it running on newtheatre/history-project which is of a decent size, should help root out anything major.