-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Tracking Issue: Split up our UI-tests into smaller parts #2038
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Perhaps we should also add a check to our test suite so we get a warning if a test gets too big? |
We'd need to patch compiletest to do that nicely. Which reminds me... I wanted to make compiletest work on stable ^^ |
👍 UI tests can be really hard to check for updates when they are too long |
Looking at
|
This comment has been minimized.
This comment has been minimized.
Looks like stable compiletest-rs is being worked on 🎉 Manishearth/compiletest-rs#107 |
3397: UI test cleanup: Extract expect_fun_call tests r=matthiaskrgr a=phansch Note that the new stderr file does not include a `shadow-unrelated` error, because the new UI test file does not use `#![warn(clippy::all)]` cc #2038 3398: UI test cleanup: Extract match_overlapping_arm tests r=matthiaskrgr a=phansch cc #2038 Co-authored-by: Philipp Hansch <dev@phansch.net>
There's only one test currently. I also updated the lint doc with a 'good' example and changed the lint help text a bit. cc rust-lang#2038
UI test cleanup: Extract derive_hash_xor_eq tests changelog: none cc #2038
Split up `collapsible_if` ui test Part of #2038 changelog: none
Split up `missing-doc` ui test Part of #2038 changelog: none
Split up `use_self` ui test Part of #2038 changelog: none
Split up `if_same_then_else` ui test Part of #2038 changelog: none
Split up `transmute` ui test Part of #2038 changelog: none
Split up `needless_range_loop` ui test Part of #2038 changelog: none
Split up `match_same_arms` ui test Part of #2038 changelog: none
Split up `non_copy_const` ui test Part of #2038 Maybe there is a better way to avoid duplications of constants. changelog: none
Split up `match` ui test Part of #2038 Also, this decreases the line length limit to 220. changelog: none
Split up `drop_forget_ref` ui test Part of #2038 changelog: none
Split up `drop_forget_ref` ui test Part of #2038 changelog: none
This can now be unpinned |
Changing files like
tests/ui/methods.rs
causes a lot of diff noise. I think the ui output of every file should be kept below 100 lines preferrably and below 200 as a hard limit.The files would best be split up to only check one or two lints
Current status:
The text was updated successfully, but these errors were encountered: