Skip to content

Document how to run unit tests #1138

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

Closed
spastorino opened this issue Jun 4, 2021 · 0 comments · Fixed by #1141
Closed

Document how to run unit tests #1138

spastorino opened this issue Jun 4, 2021 · 0 comments · Fixed by #1141

Comments

@spastorino
Copy link
Member

If you want to run thin_vec unit tests you may try to do something like ...

./x.py test compiler/rustc_data_structures/src/thin_vec/tests.rs

But that's not possible.

The right way is ...

./x.py test compiler/rustc_data_structures/ --test-args thin_vec

We should add this information to https://rustc-dev-guide.rust-lang.org/tests/running.html and possibly discuss a bit about why unit tests are not supported using a single file. Maybe we should also support that through x.py.

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 a pull request may close this issue.

1 participant