Closed aarongoldenthal closed 10 months ago
Thanks again for this functionality @aarongoldenthal. The test runs have expired but, since it was previously approved, and nothing else has arrived in main
since the time of approval, I'll merge it now, so I can build on it for pa11y-ci@4
.
This PR updates the integration tests to support all platforms, including Windows. The current integration tests fail on Windows for two reasons:
startWebsite
function and JSON output tests rely on POSIX-style paths, so encounter errors when simply concatenated with Windows paths. Thepath.resolve
orpath.join
functions are used instead.cliCall
function that executes the tests assumes thebin
file is executable, which works in *nix systems, but is not true in Windows since it ignores the shebang. This function is updated to explicitly run thenode
command against thebin
file.This also adds Windows and Mac test cases to the GitHub Actions, matching https://github.com/pa11y/pa11y/pull/640.