Skip to content

☂️ Help us Kotlin-ify React Native tests - Round 2 #38825

Closed
@mdvacca

Description

@mdvacca

☂️ Help us Kotlin-ify React Native tests - Round 2

Hey all 👋
After the successful first round, we're back with another round of tasks to help us improve Kotlin support in React Native core. In this first stage we are looking for help to migrate tests and RN Tester to Kotlin.

How to work

If you wish to grab one of the task you should:

  • Verify that the task is not claimed yet.
  • Comment here that you claim a task.
  • Start working on the task. Testing instructions are below.
  • Send the PR for review. Ping @cortinico and @mdvacca for a review.
  • You can’t claim more than one task at a time.
  • If you’re not completing the task within a week, we’ll release it for the next contributor.

Code formatting

Please use KtFmt to format Kotlin tests.
You can use the web UI to reformat directly from the browser

[Easy] Migrating RN Tester to Kotlin

We’re looking into migrating our Sample App to Kotlin.

Please act as follow:

  • Fork and clone the repo
  • Verify that RN Tester runs with yarn && yarn android from the root folder
  • Migrate the file to Kotlin
  • Verify that RN Tester runs again using the same command.

List of files to migrate

[Hard] Migrating tests to Kotlin

We’re looking into migrating some of our production tests to Kotlin. Please note that some of those tests are @Ignore (so they’re not running). Your task would be to fix them and convert them to Kotlin.

Please act as follow:

  • Fork and clone the repo
  • Install the dependencies with yarn from the root repo.
  • Verify that tests are running green with: ./gradlew :packages:react-native:ReactAndroid:test
  • Remove the @Ignore annotation on the class/tests
  • Fix the test so that it’s green
  • Migrate the file to Kotlin
  • Verify that the tests are still green by using the command above.

List of tests to migrate

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☂️ UmbrellaTo label issues that serve as coordination point and drivers for tasks in the react-native repoGood first issueInterested in collaborating? Take a stab at fixing one of these issues.Help Wanted :octocat:Issues ideal for external contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions