-
Notifications
You must be signed in to change notification settings - Fork 9
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 tests #151
Add tests #151
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good overall. The Upgrade gradle
commit was missing some updates to the wrapper scripts - something that the wrapper
task does (Android Studio won't do it). I opened a quick PR with only those changes here: #152
So after rebasing, you can exclude the file from the commit, and also reword it to Update Android Gradle plugin to 4.0.1
Bundle props = getDefaultProps(); | ||
addGlobalProps(props); | ||
if (data != null) { | ||
props.putAll(data); | ||
} | ||
mMiniAppView.setAppProperties(props); | ||
((ReactRootView)mMiniAppView).setAppProperties(props); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space after cast
@@ -16,6 +16,9 @@ android { | |||
minifyEnabled false | |||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |||
} | |||
debug { | |||
multiDexEnabled true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this required..?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, required for instrumentation testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this enables it not only for testing... Why is it required for instrumentation testing?
|
||
@Test | ||
public void testRootComponentRendering() { | ||
Assert.assertNotNull(rule); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Best practice to use static imports for things like assertNotNull
etc. (Just like you've already added a static import for fail
) - It makes these lines shorter and easier to read.
android/lib/build.gradle
Outdated
androidTestImplementation 'androidx.test.ext:junit:1.1.1' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' | ||
androidTestImplementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' | ||
androidTestImplementation 'com.android.support:multidex:1.0.3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use "androidx.multidex:multidex:2.0.1"
instead
This helps React Native components to send navigate requests when backgrounded
89b64f0
to
5591e00
Compare
No description provided.