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

Move CombineTestObserver files to the test target #1923

Merged
merged 2 commits into from Jan 31, 2024

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented Jan 30, 2024

📲 What

Move combineTestObserver to all test targets and its corresponding test to the KsApiTests target. Otherwise, the app crashes on launch.

I think there's probably a better way to ensure combineTestObserver is accessible to all test targets without being accessible outside of tests, but I think that would involve creating a separate target just for it, and I'm not sure if that's worth it.

✅ Acceptance criteria

  • Circle ci tests still pass
  • App builds and doesn't crash on launch

@ifosli ifosli self-assigned this Jan 30, 2024
@ifosli ifosli added this to the release 5.13.0 milestone Jan 30, 2024
@ifosli ifosli changed the title Move files to the test target Move CombineTestObserver files to the test target Jan 30, 2024
@amy-at-kickstarter
Copy link
Contributor

I created a follow-up ticket to create a shared test target: https://kickstarter.atlassian.net/browse/MBL-1179

Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

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

Thanks for catching this and the quick fix! I'm a little surprised none of our tests fail in a "crashes-on-launch" scenario - I guess none of them actually boot the app? Might be worth adding an integration test that launches the app for unfortunate scenarios like this.

@ifosli ifosli merged commit 22674cd into main Jan 31, 2024
5 checks passed
@ifosli ifosli deleted the combineTestObserverCrash branch January 31, 2024 16:11
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.

None yet

2 participants