-
Notifications
You must be signed in to change notification settings - Fork 442
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
Updates rust_test to use main.rs as the root when use_libtest_harness is false #1518
Conversation
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.
Seems like a test needs to be updated to accompany this change? Otherwise seems good to me 😄
(also, sorry for the delay!)
Fixed! (and no worries) |
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.
Looks good to me but one clarifying question about the impact of this change.
@@ -36,7 +36,10 @@ def _use_libtest_harness_test(): | |||
|
|||
rust_test( | |||
name = "mytest_noharness", | |||
srcs = ["mytest_noharness.rs"], | |||
srcs = [ |
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.
Is this PR a breaking change? Do test targets with a single source file not using the test harness now require a main.rs
or will they be able to function just as they did before?
Test targets with a single source file not using the test harness function as they did before. Test targets with multiple source files not using the test harness will break if they had not specified |
Would you be willing to add a test case for that? Just a copy of |
Done! |
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.
Thank you so much!
Fixes #1516.