rules_apple
rules_apple copied to clipboard
Add test_host_is_bundle_loader configuration
The default behavior for a test that has a test_host is to use that test
host app as the -bundle_loader linker argument. This is required if
you want to test APIs from the host app, but in the case you want to use
a host for other reasons, like testing iOS features that require you to
run in an app, you might not want this. This also works around some
surprising behavior where linkopts from the app are applied to the test
bundle as well.
I only added this to iOS right now, figured we could add as needed to other rules ¯_(ツ)_/¯
Feels a little odd to not have it on all the ones that have a test host.
filed https://github.com/bazelbuild/bazel/issues/16327
yea i agree, im torn between it's overhead that might not be used and we should add it as needed, vs that's weird. definitely also being lazy about adding more test targets 🙃
I think the overhead is next to nothing, so it being weird probably outweighs it.
now that all the test rule's attributes are unified i think we're good with the tests we have here