Closed cortinico closed 1 month ago
Hey @cortinico ,
Please assign me TaskUtilsTest.kt
, JsonUtilsTest.kt
and OsTest.kt
Hey! I'll be taking next 5 after @migueldaipre
KotlinStdlibCompatUtilsTest.kt
,ModelAutolinkingDependenciesJsonTest.kt
, PathUtilsTest.kt
,DependencyUtilsTest.kt
,ProjectUtilsTest.kt
.@migueldaipre @kachmashk done. Also @kachmashk I've assigned only 5 to leave some for others to do as well, you can claim more once you're done with yours.
Sure thing @cortinico, will change my comment one last time to remove the sixth one.
Please assign me ClipboardModuleTest.kt
Hey, @cortinico.
I would like to take FileUtilsTest.kt
, NdkConfiguratorUtilsTest.kt
and AgpConfiguratorUtilsTest.kt
, please.
hey there! I can take care of packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareBoostTaskTest.kt
Hey π i would like to take packages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.kt
. Thank you
Hey @cortinico, please assign me BackwardCompatUtilsTest.kt
Hey @cortinico. I'd like to migrate 3 more files.
DefaultNewArchitectureEntryPointTest.kt
InteropEventEmitterTest.kt
InteropModuleRegistryTest.kt
Hey @cortinico, I would like to migrate these too:
HeaderUtilTest.kt
ReactActivityDelegateTest.kt
Hey π i would like to take packages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/internal/interop/InteropUiBlockListenerTest.kt
. Thank you
Hey @cortinico π i would like to take packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/GeneratePackageListTaskTest.kt
. Thank you
Hey @cortinico , can assign me for the following:
GeneratePackageListTaskTest.kt
GenerateCodegenArtifactsTaskTest.kt
Thanks
Hey @cortinico π i would like to take packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTaskTest.kt
. Thank you
Hey @cortinico π i would like to take packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/GenerateCodegenSchemaTaskTest.kt
. Thank you
Hey @cortinico, please assign me to packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareJSCTaskTest.kt
Hey @cortinico , I would like to migrate packages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelperTest.kt
Thank you π
Hey @cortinico I can migrate packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/ReactExtensionTest.kt
if possible, thank you
if possible I can also take packages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/BundleHermesCTaskTest.kt
migration task as well @cortinico
Hey @cortinico. I can migrate
PrepareGlogTaskTest.kt
BuildCodegenCLITaskTest.kt
if possible, thanks! π
Hey @cortinico , I'll take:
ReactModuleInfoTest.kt
DialogModuleTest.kt
FabricUIManagerTest
Edit: Migrated! π₯³
https://github.com/facebook/react-native/pull/45644Hey @cortinico. I would like to take the last one available.
ShareModuleTest.kt
Thank you all for the great work so far! We're 75% done that's huge π
To everyone still having an open test, please try to conclude it this week π
@barbarosaffan your assigned file ReactExtensionTest.kt
was already migrated as part of another refactoring needed for 0.75, so there is no work for you to do :)
Ping to @BogiKay and @Tony-MK as yours are the last 2 files. If you can't migrate them, please answer by EOD or we'll release it for the next contributor to pickup π
Ping to @BogiKay and @Tony-MK as yours are the last 2 files. If you can't migrate them, please answer by EOD or we'll release it for the next contributor to pickup π
Hey, I'm planning to raise a PR by EOD.
I am also planning to finish my PR by EOD as well @cortinico
Ping to @BogiKay and @Tony-MK as yours are the last 2 files. If you can't migrate them, please answer by EOD or we'll release it for the next contributor to pickup π
Hey, I'm planning to raise a PR by EOD.
Thank you all for helping us with this migration! Your contribution was extremely valuable to keep our tests clean and tidy! I hope you enjoyed contributing to React Native.
@cortinico Thank you for the opportunity, I hope to have more chances to contribute to this amazing project.
Hey all π We'd like to use the community some support to help us migrate our to AssertJ (https://assertj.github.io/doc/#assertj-core).
We prepared a list of files that should be migrated from JUnit's Asserts (i.e.
import org.junit.Assert...
) from AssertJ (i.e.import org.assertj...
).AssertJ is a more powerful assertion library which makes it immediately clear where the test failure is.
How to work
The recommended number of files to migrate together is 3-5
If you wish to migrate some of the files you should:
You can't claim more than 5 files at a time.
How to migrate a test
You can see an example of a test migration in this commit: https://github.com/facebook/react-native/commit/91ecd7eb5330f5d725f5587744713064d614a6b3
You can read the guide here: https://assertj.github.io/doc/#assertj-core-assertions-guide on how to migrate a test from JUnit's assertion to AssertJ
List of files to migrate
packages/gradle-plugin/shared/src/test/kotlin/com/facebook/react/utils/TaskUtilsTest.kt
assigned to @migueldaiprepackages/gradle-plugin/shared/src/test/kotlin/com/facebook/react/utils/JsonUtilsTest.kt
assigned to @migueldaiprepackages/gradle-plugin/shared/src/test/kotlin/com/facebook/react/utils/OsTest.kt
assigned to @migueldaiprepackages/gradle-plugin/shared/src/test/kotlin/com/facebook/react/utils/KotlinStdlibCompatUtilsTest.kt
assigned to @kachmashkpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/model/ModelAutolinkingDependenciesJsonTest.kt
assigned to @kachmashkpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/PathUtilsTest.kt
assigned to @kachmashkpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/DependencyUtilsTest.kt
assigned to @kachmashkpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/ProjectUtilsTest.kt
assigned to @kachmashkpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/FileUtilsTest.kt
assigned to @henriqueciceropackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/NdkConfiguratorUtilsTest.kt
assigned to @henriqueciceropackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/AgpConfiguratorUtilsTest.kt
assigned to @henriqueciceropackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/utils/BackwardCompatUtilsTest.kt
assigned to @gustavoabelpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/BundleHermesCTaskTest.kt
assigned to @omer-ayhanpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/GenerateCodegenSchemaTaskTest.kt
assigned to @omer-ayhanpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareGlogTaskTest.kt
assigned to @migueldaiprepackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/BuildCodegenCLITaskTest.kt
assigned to @migueldaiprepackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareBoostTaskTest.kt
assigned to @bionanekpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PrepareJSCTaskTest.kt
assigned to @BogiKaypackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/internal/PreparePrefabHeadersTaskTest.kt
assigned to @omer-ayhanpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/GeneratePackageListTaskTest.kt
assigned to @omerayhan-shftpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/tasks/GenerateCodegenArtifactsTaskTest.kt
assigned to @Tony-MKpackages/gradle-plugin/react-native-gradle-plugin/src/test/kotlin/com/facebook/react/ReactExtensionTest.kt
assigned to @barbarosaffanpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/uimanager/UIManagerModuleConstantsHelperTest.kt
assigned to @yakupozbaydarpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/ReactActivityDelegateTest.kt
assigned to @gustavoabelpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/clipboard/ClipboardModuleTest.kt
assigned to @retyuipackages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/share/ShareModuleTest.kt
assigned to @migueldaiprepackages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/blob/BlobModuleTest.kt
assigned to @bufgixpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/model/ReactModuleInfoTest.kt
assigned to @jaworekpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/dialog/DialogModuleTest.kt
assigned to @jaworekpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/modules/network/HeaderUtilTest.kt
assigned to @gustavoabelpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/FabricUIManagerTest.kt
assigned to @jaworekpackages/react-native/ReactAndroid/src/test/java/com/facebook/react/fabric/internal/interop/InteropUiBlockListenerTest.kt
assigned to @Skipperllapackages/react-native/ReactAndroid/src/test/java/com/facebook/react/defaults/DefaultNewArchitectureEntryPointTest.kt
assigned to @migueldaiprepackages/react-native/ReactAndroid/src/test/java/com/facebook/react/internal/interop/InteropEventEmitterTest.kt
assigned to @migueldaiprepackages/react-native/ReactAndroid/src/test/java/com/facebook/react/bridge/interop/InteropModuleRegistryTest.kt
assigned to @migueldaipreHow to test
Make sure the test is running correctly after you migrated it.
You can test it as follows:
For tests inside
packages/react-native/
with the command:For tests inside
packages/gradle-plugin/
with the command: