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

test(bzlmod): refactor tests to not depend on implementation details #1628

Merged
merged 2 commits into from
Dec 20, 2023

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Dec 18, 2023

This refactors the whl_mods tests to not rely on the layout of the
repositories, which I found to be needed whilst prototyping on #1625.
Whilst doing this I realized that in general it would be great to
support Path instances in the runfiles library, but that should be
done next time.

@aignas aignas requested a review from rickeylev as a code owner December 18, 2023 14:19
@aignas aignas marked this pull request as draft December 18, 2023 15:05
@aignas
Copy link
Collaborator Author

aignas commented Dec 18, 2023

The change can be smaller, so I'll revert the path usage within the tests and will keep the helper methods returnitg strings. The implementation of those should return Path.name as opposed to just Path.

@rickeylev rickeylev marked this pull request as ready for review December 18, 2023 19:59
@rickeylev rickeylev added this pull request to the merge queue Dec 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2023
@rickeylev rickeylev added this pull request to the merge queue Dec 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 18, 2023
This refactors the `whl_mods` tests to not rely on the layout of the
repositories, which I found to be needed whilst prototyping on bazelbuild#1625.
Whilst doing this I realized that in general it would be great to
support `Path` instances in the `runfiles` library, but that should be
done next time.
@aignas aignas force-pushed the test/refactor-example-tests branch from 79f316a to 0435762 Compare December 18, 2023 23:24
@aignas aignas added this pull request to the merge queue Dec 20, 2023
Merged via the queue into bazelbuild:main with commit 87a3a54 Dec 20, 2023
3 checks passed
@aignas aignas deleted the test/refactor-example-tests branch May 13, 2024 06:48
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