Skip to content

Migrate path translation tests to acceptance tests - #2122

Merged
pietern merged 8 commits into
mainfrom
path-translation-acceptance-1
Jan 17, 2025
Merged

Migrate path translation tests to acceptance tests#2122
pietern merged 8 commits into
mainfrom
path-translation-acceptance-1

Conversation

@pietern

@pieternpietern commented Jan 10, 2025

Copy link
Copy Markdown
Contributor

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
Comment threadacceptance/bundle/paths/fallback/output.txt Outdated
Comment threadacceptance/bundle/paths/relative_path_translation/script Outdated
@pietern
pietern requested a review from denikJanuary 14, 2025 08:56
@pietern

Copy link
Copy Markdown
ContributorAuthor

Blocked on #2145.

github-merge-queueBot 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 added this pull request to the merge queueJan 17, 2025
Merged via the queue into main with commit 89eb556Jan 17, 2025
@pietern
pietern deleted the path-translation-acceptance-1 branch January 17, 2025 10:28
denik pushed a commit that referenced this pull request May 20, 2026
## 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.
denik pushed a commit that referenced this pull request May 20, 2026
## 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.
Sign up for freeto 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

@pietern@denik