Skip to content
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

Add resources to ios_unit_test kwargs #36

Merged

Conversation

wileykestner
Copy link
Contributor

  • Pass the resources argument from the rules_ios ios_unit_test macro into the ios_unit_test rule vended by build_bazel/rules_apple

  • Ensure the resources argument from the rules_ios ios_unit_test macro does not get passed along to swift_library and objc_library

- To see the bazel failure run: `bazel test //tests/test/ios:ResourcesAddedToUnitTestBundle`

- This test fixture fails because we pass the `resources` keyword argument
  from the `rules_ios` `ios_unit_test` macro directly to the `swift_library`
  rule vended by `bazelbuild/rules_swift` as well as to Bazel's native
  `objc_library` rule.  Neither of the signatures of these rule functions
  allow an argument named `resources`.
- Pass the `resources` argument from the `rules_ios` `ios_unit_test` macro into the `ios_unit_test` rule vended by `build_bazel/rules_apple`

- Ensure the `resources` argument from the `rules_ios` `ios_unit_test` macro does not get passed along to `swift_library` and `objc_library`

- To see the test pass run: `bazel test //tests/test/ios:ResourcesAddedToUnitTestBundle`

- Closes: bazel-ios#35
@segiddins segiddins linked an issue Apr 10, 2020 that may be closed by this pull request
@segiddins
Copy link
Member

(Thanks for adding a test for this!!)

@segiddins segiddins merged commit 8e00f33 into bazel-ios:master Apr 13, 2020
@wileykestner wileykestner deleted the add-resources-to-ios-unit-test-kwargs branch April 14, 2020 14:08
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 this pull request may close these issues.

Error when passing resources argument to ios_unit_test
2 participants