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

Mazerunner tests for React Native feature flags in native code #1666

Conversation

lemnik
Copy link
Contributor

@lemnik lemnik commented Jan 20, 2022

Goal

Ensure that React Native feature flags are included in reports generated when native code (JVM / Cocoa) crashes are reported. Any changes made to feature flags in JavaScript should be visible in native reports, and changes made to feature flags from native code should be visible in JavaScript reports.

Testing

Added new Mazerunner scenarios

@github-actions
Copy link

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 42.85 kB 13.07 kB
After 42.85 kB 13.07 kB
± No change No change

code coverage diff

Coverage values did not change👌.

Total:

Lines Branches Functions Statements
0%(+0%) 0%(+0%) 0%(+0%) 0%(+0%)

Generated by 🚫 dangerJS against 307329b

@@ -42,3 +42,32 @@ Scenario: Sends no feature flags after clearFeatureFlags()
And the exception "errorClass" equals "Error"
And the event "unhandled" is false
And event 0 has no feature flags

Scenario: Sends JS feature flags in a native crash
When I run "FeatureFlagsNativeCrashScenario" and relaunch the app
Copy link
Contributor

@twometresteve twometresteve Jan 20, 2022

Choose a reason for hiding this comment

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

Ah, we're going to have a problem here as I have renamed the step on next - apologies. Could you update the integration branch and this PR first? The step now says "...and relaunch the crashed app".
Otherwise the build of next will just fail after the integration branch gets merged.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, ignore that, there are most likely other test scenarios that are affected. Let's merge this and update the integration branch as a separate activity.

Copy link
Contributor

@twometresteve twometresteve left a comment

Choose a reason for hiding this comment

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

Very tidy looking scenarios.

@twometresteve twometresteve merged commit 7dda86a into integration/feature-flags Jan 20, 2022
@twometresteve twometresteve deleted the PLAT-7475/rn-feature-flags-e2e-native-tests branch January 20, 2022 21:43
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