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

Adapt Android RN test fixture to work with BitBar #1957

Merged
merged 25 commits into from
May 15, 2023
Merged

Conversation

Cawllec
Copy link
Contributor

@Cawllec Cawllec commented May 4, 2023

Goal

This is a required change for Android test fixtures to run using BitBar as a device farm under our current setup. Cocoa was initially in scope, but is being omitted as further work is required.

Design

The logic to read the files is pulled directly from equivalent test fixtures used in the Android and Cocoa repos. Instead of passing maze-runner addresses up to the top RN layer, instead the fixture will test to see if a specific notify/session endpoint has been input when starting BugSnag, only attempting to read from the config file if one hasn't been set.

This keeps all logic in the native layer, requiring minimal changes in JS or interaction between the code layers.

Testing

The tests will be independently updated to target BitBar as a device farm provider, although I intend to move one of the current test runs over as evidence of the change working successfully. In addition, manual testing will be performed to ensure the real dashboard and user-input options for BugSnag endpoints work as expected.

@github-actions
Copy link

github-actions bot commented May 4, 2023

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 43.65 kB 13.39 kB
After 43.65 kB 13.39 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 3cdd0df

@Cawllec Cawllec changed the title Bitbar fixture Adapt Android RN test fixture to work with BitBar May 11, 2023
notifyEndpoint = endpointsIn[@"notify"];
sessionsEndpoint = endpointsIn[@"sessions"];
} else {
NSString *baseAddress = @"bs-local.com:9339";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be replaced with the file loading logic in the below swift file once it can be compiled correctly

@Cawllec Cawllec marked this pull request as ready for review May 11, 2023 13:27
@Cawllec Cawllec requested a review from gingerbenw May 11, 2023 13:28
@Cawllec Cawllec merged commit b538576 into next May 15, 2023
@Cawllec Cawllec deleted the bitbar-fixture branch May 15, 2023 10:20
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.

2 participants