Skip to content

Conversation

@alexvbush
Copy link
Collaborator

This PR fixes unit-testing compilation issue described in #10

It adds https://github.com/mattgallagher/CwlPreconditionTesting as a test target dependency to catch assertionFailure and fatalError calls thrown in ComponentizedBuilder and in MultiStageComponentizedBuilder.

This opens up ability to add more unit-tests #5 and paves the way for CI/CD setup #9

# 50-character subject line
#
# 72-character wrapped longer description. This should answer:
#
# * Why was this change necessary?
# * How does it address the problem?
# * Are there any side effects?
#
# Include a link to the ticket, if any.
#
# Add co-authors if you worked on this code with others:
#
# Co-authored-by: Full Name <email@example.com>
# Co-authored-by: Full Name <email@example.com>
],
dependencies: [
.package(url: "https://github.com/ReactiveX/RxSwift", from: "6.5.0"),
.package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", from: "2.2.2"), // for testTarget only
Copy link
Contributor

@rbrovko rbrovko Apr 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need add CwlPreconditionTesting to RIBs.podspec too.

  s.test_spec 'Tests' do |test_spec|
    test_spec.source_files = 'RIBsTests/**/*.swift'
    test_spec.dependency 'CwlPreconditionTesting'
  end

@rudro rudro self-requested a review April 29, 2025 19:30
@rudro rudro self-assigned this Apr 29, 2025
Copy link
Collaborator

@rudro rudro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should talk about the pod spec thing, but rest looks good.

@alexvbush alexvbush merged commit f1c5787 into uber:main Apr 30, 2025
1 of 2 checks passed
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.

3 participants