-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Document subdirectories of UI tests with README files #141597
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
Conversation
This comment has been minimized.
This comment has been minimized.
7d9b1a5
to
2a001cc
Compare
This comment has been minimized.
This comment has been minimized.
I feel like this is not super useful unless we explicitly establish an index structure to make those docs discoverable, i.e.
and the in r-d-g, describe this convention, and point to entry point |
That is true. Anyone who doesn't want to comb through the directories certainly isn't going to comb through the READMEs. A single one, where specific strings can be searched, is much superior. |
I know I've been confused on what ui subdirectories we have, so an TL;DR of exisiting ui dirs, e.g. # UI test suite
## Subdirectories
- [`foo/`](./foo/): exercises `foo` area of language |
2a001cc
to
3381c61
Compare
@rustbot note pr-description-is-outdated Can you also update PR description, since we don't anymore have specific per-subdir |
@rustbot note stub-out-remaining-subdirs Can you also stub out existing remaining subdirs? E.g. ## `tests/ui/subdir/`: TODO(#141695)
TODO(#141695): add some description |
3381c61
to
6107ff8
Compare
This comment has been minimized.
This comment has been minimized.
6107ff8
to
6ed90f5
Compare
This comment has been minimized.
This comment has been minimized.
6ed90f5
to
bd919b9
Compare
This comment has been minimized.
This comment has been minimized.
bd919b9
to
7e3dd8d
Compare
This comment has been minimized.
This comment has been minimized.
@rustbot note remove pr-description-is-outdated |
@rustbot note remove stub-out-remaining-subdirs |
7e3dd8d
to
b4a4181
Compare
This comment has been minimized.
This comment has been minimized.
b4a4181
to
a46a8e7
Compare
This comment has been minimized.
This comment has been minimized.
a46a8e7
to
0ec6d9b
Compare
This comment has been minimized.
This comment has been minimized.
0ec6d9b
to
f0aa93b
Compare
5cd9751
to
3e2c4ce
Compare
@Oneirical thanks for working on this, I find it very helpful. I pushed some edits to your branch, let me know if this version broadly looks good. This is a survey of existing organization of the ui test suite, and does not have to be perfect at all. If it looks reasonable to you, feel free to @bors delegate+ rollup |
✌️ @Oneirical, you can now approve this pull request! If @jieyouxu told you to " |
@rustbot author |
Reminder, once the PR becomes ready for a review, use |
Actually, could you also leave a one-liner mention about this SUMMARY.md survey in rustc-dev-guide in this PR, i.e. in https://rustc-dev-guide.rust-lang.org/tests/ui.html#introduction to make it more discoverable |
Co-authored-by: Jieyou Xu <[email protected]>
3e2c4ce
to
b433aba
Compare
The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
@bors r=Oneirical,jieyouxu Added the one-liner to the dev guide, and fixed some formatting errors related to `` instead of `. |
r stands for reviewer ;) @bors r=jieyouxu |
💡 This pull request was already approved, no need to approve it again.
|
…on, r=jieyouxu Document subdirectories of UI tests with README files Part of rust-lang#133895 and the [2025 Google Summer of Code](https://blog.rust-lang.org/2025/05/08/gsoc-2025-selected-projects/) associated project. When adding a new UI test, one is faced with hundreds of subdirectories in `tests/ui` reflecting various categories. Knowing where to put the new test is not trivial, as many of the categories have slightly misleading names. For example, `moves` does not only refer to the `move` keyword but to functions taking ownership in general, whereas `allocator` does not refer to allocation in general but rather to the very specific `allocator_api` and `global_allocator` features. Many contributors will therefore place their test at the top level of ̀`tests/ui` where it will be mixed with hundreds of unrelated tests. This PR is a tentative move towards more clearly defined tag/categories, with a SUMMARY.md file documenting the true purpose of each subdirectory, placed inside `tests/ui`. r? `@jieyouxu`
Rollup of 6 pull requests Successful merges: - #140136 (Add an aarch64-msvc build running on ARM64 Windows) - #141597 (Document subdirectories of UI tests with README files) - #142823 (Port `#[no_mangle]` to new attribute parsing infrastructure) - #142828 (1.88.0 release notes) - #142854 (centralize `-Zmin-function-alignment` logic) - #142875 (Check rustdoc-json-types FORMAT_VERSION is correctly updated) r? `@ghost` `@rustbot` modify labels: rollup
a file like this is normally README.md... seeing SUMMARY made be think this was a new mdbook tree |
Rollup of 5 pull requests Successful merges: - #141597 (Document subdirectories of UI tests with README files) - #142823 (Port `#[no_mangle]` to new attribute parsing infrastructure) - #142828 (1.88.0 release notes) - #142854 (centralize `-Zmin-function-alignment` logic) - #142875 (Check rustdoc-json-types FORMAT_VERSION is correctly updated) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #141597 - Oneirical:unquestionable-instruction, r=jieyouxu Document subdirectories of UI tests with README files Part of #133895 and the [2025 Google Summer of Code](https://blog.rust-lang.org/2025/05/08/gsoc-2025-selected-projects/) associated project. When adding a new UI test, one is faced with hundreds of subdirectories in `tests/ui` reflecting various categories. Knowing where to put the new test is not trivial, as many of the categories have slightly misleading names. For example, `moves` does not only refer to the `move` keyword but to functions taking ownership in general, whereas `allocator` does not refer to allocation in general but rather to the very specific `allocator_api` and `global_allocator` features. Many contributors will therefore place their test at the top level of ̀`tests/ui` where it will be mixed with hundreds of unrelated tests. This PR is a tentative move towards more clearly defined tag/categories, with a SUMMARY.md file documenting the true purpose of each subdirectory, placed inside `tests/ui`. r? ``@jieyouxu``
Part of #133895 and the 2025 Google Summer of Code associated project.
When adding a new UI test, one is faced with hundreds of subdirectories in
tests/ui
reflecting various categories. Knowing where to put the new test is not trivial, as many of the categories have slightly misleading names. For example,moves
does not only refer to themove
keyword but to functions taking ownership in general, whereasallocator
does not refer to allocation in general but rather to the very specificallocator_api
andglobal_allocator
features.Many contributors will therefore place their test at the top level of ̀
tests/ui
where it will be mixed with hundreds of unrelated tests.This PR is a tentative move towards more clearly defined tag/categories, with a SUMMARY.md file documenting the true purpose of each subdirectory, placed inside
tests/ui
.r? @jieyouxu