-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
☂️ Help us Kotlin-ify React Native tests #37708
Comments
Hey @cortinico, Please assign me react/animated/NativeAnimatedNodeTraversalTest.java. |
Done 👍 |
Hey @cortinico, you can assign me to react/modules/deviceinfo/DeviceInfoModuleTest.java |
Hey @cortinico , can you assign me react/modules/clipboard/ClipboardModuleTest.java ? |
Hey @cortinico , can you assign me react/fabric/events/TouchEventDispatchTest.java |
Hey @cortinico, can you assign me to this one react/animated/NativeAnimatedInterpolationTest.java? |
hey @cortinico , can you assign me to this one react/util/JSStackTraceTest.java |
Hi @cortinico , you can assign me to |
Hey @cortinico , can you assign me to this one react/modules/network/HeaderUtilTest.java |
Hey @cortinico , I'd like to take this one /react/modules/share/ShareModuleTest.java |
Hey @cortinico, assign me to react/modules/blob/BlobModuleTest.java |
Hi @cortinico, I'd like to work on this one : react/fabric/interop/FakeEventDispatcher.java |
Hi @cortinico, can you assign react/modules/network/ReactCookieJarContainerTest.java to me? |
Hi @cortinico, can you assign this one to me? react/modules/camera/ImageStoreManagerTest.java |
Awesome stuff, I've assigned all the tasks that got claimed so far. Folks that got a test class assigned, can start working on it. |
hey @cortinico, can you assign this one to me? react/modules/network/ProgressiveStringDecoderTest.java |
hey @cortinico , could you assign me this one react/modules/dialog/DialogModuleTest.java I'll try to help as much as possible :) |
Hey @cortinico, please assign me react/fabric/interop/InteropEventEmitterTest.java |
Summary: This PR converts DialogModuleTest into Kotlin as requested in [this issue](#37708). ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [INTERNAL] [CHANGED] - Convert DialogModuleTest to Kotlin Pull Request resolved: #37795 Test Plan: 1. Run `./gradlew :packages:react-native:ReactAndroid:test`. 2. All tests should pass. Reviewed By: cortinico Differential Revision: D46596235 Pulled By: mdvacca fbshipit-source-id: ef4184664ad885ebd2e8c1d51ca5bb7dc48f0610
Summary: This PR converts DeviceInfoModuleTest into Kotlin as requested in #37708. ## Changelog: [INTERNAL] [CHANGED] - Convert DeviceInfoModuleTest to Kotlin Pull Request resolved: #37805 Test Plan: 1. Run `./gradlew :packages:react-native:ReactAndroid:test`. 2. All tests should pass. Reviewed By: cortinico Differential Revision: D46614375 Pulled By: rshest fbshipit-source-id: 3fc390069628e3ce188121f3e775b28e88875af8
Summary: This PR converts HeaderUtilTest.java to Kotlin as requested in #37708. ## Changelog: [INTERNAL] [CHANGED] - Convert HeaderUtilTest to Kotlin Pull Request resolved: #37829 Test Plan: Run ./gradlew :packages:react-native:ReactAndroid:test. All tests should pass. Reviewed By: mdvacca Differential Revision: D46647152 Pulled By: cortinico fbshipit-source-id: a05108c4cae28526ac55f4f273673221e3ff4cf1
Summary: This PR migrates ReactCookieJarContainerTest.java to Kotlin as a part of the issue #37708 ## Changelog: [INTERNAL] [CHANGED] - Migrate ReactCookieJarContainerTest.java to Kotlin <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #37809 Test Plan: 1. Run ./gradlew :packages:react-native:ReactAndroid:test. 2. All tests should pass. Reviewed By: javache Differential Revision: D46779169 Pulled By: rshest fbshipit-source-id: b5caa9397ac1b852fc73d9c58afc4a21caeb8727
Summary: This PR converts [NativeAnimatedNodeTraversalTest](https://github.com/facebook/react-native/tree/main/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/animated/NativeAnimatedNodeTraversalTest.java) into Kotlin as requested in #37708 ## Changelog: [INTERNAL] [CHANGED] - Convert `NativeAnimatedNodeTraversalTest` to Kotlin Pull Request resolved: #37960 Test Plan: 1. Run `./gradlew :packages:react-native:ReactAndroid:test`. 2. All tests should pass. Reviewed By: javache Differential Revision: D46838215 Pulled By: rshest fbshipit-source-id: 6681d74896a0c94fa7f3ad2ce79eeab4974c55f4
@mdvacca Any pending test for me? |
@stanwolverine, let me review the list and I will get back to you |
@rozkminiacz, @jasokolowska, are you working on:
otherwise, we can reassign them to @stanwolverine |
@stanwolverine I reassigned both tests to you: |
@mdvacca thanks, I will start working |
@mdvacca, do you have any test for me? |
Currently all the tests are assigned. If @stanwolverine doesn't send both PRs by the end of tomorrow, we can assign those tests to you @rupam-seal |
Ok Thank you!🫡 |
Hey @cortinico and @rupam-seal , After solving many issues while setting up react-native on my local machine, I was able to finish both tests. I will send both PRs before the end of tomorrow. |
Summary: Helping in [Kotlin-ify React Native tests](#37708), Converted [react/fabric/interop/InteropEventEmitterTest.java](https://github.com/facebook/react-native/tree/main/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/interop/InteropEventEmitterTest.java) to kotlin file ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [INTERNAL] [CHANGED] - `InteropEventEmitterTest.java` file migrated from java to kotlin Pull Request resolved: #38144 Test Plan: Tests should pass ``` ./gradlew :packages:react-native:ReactAndroid:test ``` Reviewed By: NickGerleman Differential Revision: D47165007 Pulled By: mdvacca fbshipit-source-id: 459b0867810eb1b782eea354d74152306b9546ff
Summary: Helping in [Kotlin-ify React Native tests](#37708), Converted [react/bridge/JavaScriptModuleRegistryTest.java](https://github.com/facebook/react-native/tree/main/packages/react-native/ReactAndroid/src/test/java/com/facebook/react/bridge/JavaScriptModuleRegistryTest.java) to kotlin file ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [INTERNAL] [CHANGED] - `JavaScriptModuleRegistryTest.java` file migrated from java to kotlin Pull Request resolved: #38143 Test Plan: Tests should pass ``` ./gradlew :packages:react-native:ReactAndroid:test ``` Reviewed By: NickGerleman Differential Revision: D47164993 Pulled By: mdvacca fbshipit-source-id: 6aee2bcb2766fc2e6d68f4df272aaafb9c65bdcb
Thanks everyone for contributing to migrate React Native Android tests to Kotlin Since all the tests on the list were migrated, I'm closing this issue! |
Description
Hey all 👋
We're looking for some community support to help us prepare the codebase of React Native Android to be ready to migrate to Kotlin. In this first stage we are looking for help to migrate tests to Kotlin
How to migrate a test
If you wish to convert one of the tests you should:
Setting up your environment
Make sure your environment is set correctly, specifically you need to:
yarn
inside your local fork (installation instruction for yarn are here)Running your tests
You can run your tests either by using the Android Studio/IntelliJ UI or by invoking the following command in your React Native fork:
Code formatting
Please use KtFmt to format Kotlin tests.
You can use the web UI to reformat directly from the browser:
https://facebook.github.io/ktfmt/
List of tests to migrate
The text was updated successfully, but these errors were encountered: