-
Notifications
You must be signed in to change notification settings - Fork 44
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
TEST ONLY #200
base: main
Are you sure you want to change the base?
TEST ONLY #200
Conversation
rules/android_local_test/attrs.bzl
Outdated
@@ -175,9 +175,10 @@ def make_attrs(additional_aspects = [], native_libs_transition = None): | |||
env = attr.string_dict( | |||
doc = "A dictionary of environment variables set for the execution of the test. Will be subject to make variable and $(location) expansion.", | |||
), | |||
robolectric_properties_file = attr.string( | |||
robolectric_properties_file = attr.label( |
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.
You can also just look up the properties file in the runfiles and error out if they aren't found. I believe this is how the native Android rules handle this use case already.
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.
Thanks for the example. But if user have the option to use their own properties file, would this look-up approach work? On the other hand, I'm not sure if users ever want to use their own properties files.
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.
It should as long as you are writing the file to the expected location. Probably isn't really a major use case that people will have though.
One use case that comes to mind would be stripping out old Android versions that you no longer want to support from Robolectric. If there is a need to customize the properties file we can always build out support for that in rules_robolectric
.
5abd169
to
ab64bec
Compare
TEST bazelci @Head