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

Fixed pod install instructions #3243

Merged
merged 3 commits into from
Aug 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions website/contributing/how-to-run-and-write-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ yarn run lint

### iOS Tests

Start off by running `pod install` inside the `RNTester` directory. This will set up your native dependencies and create a `RNTesterPods` Xcode workspace.
Follow the [README.md](https://github.com/facebook/react-native/blob/main/packages/rn-tester/README.md) instructions in the `packages/rn-tester` directory.

Then, go back to the root of your React Native checkout and run `yarn` followed by `yarn start`. This will set up your JavaScript dependencies.
Then, go back to the root of your React Native checkout and run `yarn`. This will set up your JavaScript dependencies.

At this point, you can run iOS tests by invoking the following script from the root of your React Native checkout:

Expand All @@ -43,6 +43,16 @@ Xcode also allows running individual tests through its Test Navigator. You can a
`objc-test.sh` ensures your test environment is set up to run all tests. It also disables tests that are known to be flaky or broken. Keep this in mind when running tests using Xcode. If you see an unexpected failure, see if it's disabled in `objc-test.sh` first.
:::

#### iOS Podfile/Ruby tests

If you are making modifications to `Podfile` configurations then there are Ruby tests that can verify these.

To run the ruby tests:
```bash
cd scripts
sh run_ruby_tests.sh
```

### Android Tests

The Android unit tests do not run in an emulator. They use a normal Java installation. The test suite is built using the [Buck build tool][buck-install].
Expand Down