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

Migrate path translation tests to acceptance tests #2122

Merged
merged 8 commits into from
Jan 17, 2025

Conversation

pietern
Copy link
Contributor

@pietern pietern commented Jan 10, 2025

Changes

The assertions on the output made are now captured in the output.* files. These don't capture intent like actual assertions do, but we still have regular test coverage in the path translation tests under bundle/config/mutator.

Tests

Tests pass.

@pietern pietern marked this pull request as ready for review January 10, 2025 17:57
@pietern pietern requested a review from andrewnester as a code owner January 10, 2025 17:57
@pietern pietern temporarily deployed to test-trigger-is January 10, 2025 17:57 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is January 14, 2025 08:55 — with GitHub Actions Inactive
@pietern pietern requested a review from denik January 14, 2025 08:56
@pietern
Copy link
Contributor Author

pietern commented Jan 14, 2025

Blocked on #2145.

github-merge-queue bot pushed a commit that referenced this pull request Jan 17, 2025
## Changes

This came up in #2122 where relative library paths showed up with
backslashes on Windows. It's hard to run acceptance tests where paths
may be in either form. This change updates path translation logic to
always use forward slash-separated paths, including for absolute paths.

## Tests

* Unit tests pass.
* Confirmed that code where library paths are used uses the `filepath`
package for path manipulation. The functions in this package always
normalize their inputs to be platform-native paths.
* Confirmed that code that uses absolute paths works with forward
slash-separated paths on Windows.
@pietern pietern temporarily deployed to test-trigger-is January 17, 2025 09:44 — with GitHub Actions Inactive
@pietern pietern added this pull request to the merge queue Jan 17, 2025
Merged via the queue into main with commit 89eb556 Jan 17, 2025
9 checks passed
@pietern pietern deleted the path-translation-acceptance-1 branch January 17, 2025 10:28
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.

2 participants