Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update integration tests to support all platforms, including Windows #177

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

aarongoldenthal
Copy link
Contributor

@aarongoldenthal aarongoldenthal commented Apr 2, 2022

This PR updates the integration tests to support all platforms, including Windows. The current integration tests fail on Windows for two reasons:

  1. The startWebsite function and JSON output tests rely on POSIX-style paths, so encounter errors when simply concatenated with Windows paths. The path.resolve or path.join functions are used instead.
  2. The cliCall function that executes the tests assumes the bin 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 the node command against the bin file.

This also adds Windows and Mac test cases to the GitHub Actions, matching pa11y/pa11y#640.

Copy link
Member

@joeyciechanowicz joeyciechanowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌟

@danyalaytekin
Copy link
Member

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.

@danyalaytekin danyalaytekin merged commit 3a5104b into pa11y:main Nov 3, 2023
stevenleija added a commit to stevenleija/pa11y-ci-stevenleija that referenced this pull request May 2, 2024
* origin/master:
  Bump ip from 1.1.8 to 1.1.9
  Update to Pa11y v7 and other dependency updates (pa11y#231)
  Version `3.1.0` (pa11y#226)
  Add JavaScript config example to README (pa11y#197)
  Bump @babel/traverse from 7.16.0 to 7.23.3 (pa11y#222)
  Bump semver from 6.3.0 to 6.3.1 (pa11y#221)
  Bump json5 from 2.2.0 to 2.2.3 (pa11y#219)
  Bump ansi-regex from 3.0.0 to 3.0.1 (pa11y#218)
  Bump debug from 4.1.1 to 4.3.1 (pa11y#216)
  Bump node-fetch from 2.6.1 to 2.6.7 (pa11y#217)
  Upgrade to `pa11y@6.2.3`, add publishing workflow (pa11y#213)
  Update integration tests to support all platforms, including Windows (pa11y#177)

# Conflicts:
#	bin/pa11y-ci.js
#	package-lock.json
#	package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants