Skip to content

Conversation

@ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Mar 21, 2025

Recommended review is commit-by-commit, with rebase-and-merging.


WGPU is the sort of projects that lives and dies off of its tests. Making tests easy to author is an important choice for us to make, and, if possible, we'd like to make it as easy as "add a file here and write your code".

Often, we need to add new mod entries for Rust-based tests. This can cause conflicts, and has no real value to us. This same dynamic motivates crates like automod, which automatically enumerate child modules in Rust source based on the presence of files.

Partially automate away the papercut of adding mod entries by using automod::dir!() in directories that have multiple tests underneath them.

@ErichDonGubler ErichDonGubler requested a review from a team as a code owner March 21, 2025 18:33
@ErichDonGubler
Copy link
Member Author

Curious what @gfx-rs/wgpu thinks of this one. I don't see it as controversial, but I recognize that it can be. 🙂

@ErichDonGubler ErichDonGubler added area: infrastructure Testing, building, coordinating issues area: tests Improvements or issues with our test suite labels Mar 21, 2025
@cwfitzgerald
Copy link
Member

Promoted this to the next wgpu maintainers meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: infrastructure Testing, building, coordinating issues area: tests Improvements or issues with our test suite

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants