-
Couldn't load subscription status.
- Fork 13.9k
bootstrap: rustdoc-js tests can now be filtered by js files #146450
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
|
I wouldn't worry about the clone, and just always convert to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like a bit of a hack in terms of test discovery, but is okay to make it at least usable at first.
|
@bors r+ rollup |
Rollup of 5 pull requests Successful merges: - #144498 (Add --print target-spec-json-schema) - #145471 (Stabilize BTree{Map,Set}::extract_if) - #145896 (Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [#3 of Batch #2]) - #146450 (bootstrap: rustdoc-js tests can now be filtered by js files) - #146456 (Fix panic and incorrectly suggested examples in `format_args` macro.) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #146450 - lolbinarycat:bootstrap-test-js, r=jieyouxu bootstrap: rustdoc-js tests can now be filtered by js files Before, a command like `./x test tests/rustdoc-js/path-ordering.js` would succeed, but run no tests, since the names of the tests are based on the `.rs` file. This is a bit confusing, as the `rustdoc-js-std` test suite only has `.js` files, and thus those are the files you filter on. Now, `./x test tests/rustdoc-js/path-ordering.js` will be treated as an alias for `./x test tests/rustdoc-js/path-ordering.rs`. This is fairly simple as each `rustdoc-js` test has 2 files, 1 js file and one rust file, each with an identical base filename, so all we need to do is swap the extension. r? `@Kobzol`
Rollup of 5 pull requests Successful merges: - rust-lang/rust#144498 (Add --print target-spec-json-schema) - rust-lang/rust#145471 (Stabilize BTree{Map,Set}::extract_if) - rust-lang/rust#145896 (Rehome 30 `tests/ui/issues/` tests to other subdirectories under `tests/ui/` [rust-lang/rust#3 of Batch rust-lang/rust#2]) - rust-lang/rust#146450 (bootstrap: rustdoc-js tests can now be filtered by js files) - rust-lang/rust#146456 (Fix panic and incorrectly suggested examples in `format_args` macro.) r? `@ghost` `@rustbot` modify labels: rollup
Before, a command like
./x test tests/rustdoc-js/path-ordering.jswould succeed, but run no tests, since the names of the tests are based on the.rsfile. This is a bit confusing, as therustdoc-js-stdtest suite only has.jsfiles, and thus those are the files you filter on. Now,./x test tests/rustdoc-js/path-ordering.jswill be treated as an alias for./x test tests/rustdoc-js/path-ordering.rs. This is fairly simple as eachrustdoc-jstest has 2 files, 1 js file and one rust file, each with an identical base filename, so all we need to do is swap the extension.r? @Kobzol