Clean up and link testing section in onboarding
PiperOrigin-RevId: 526730634
Change-Id: I6ce5945f8a5db0cab2d659954f8a00f85ff5247f
diff --git a/docs/onboarding.md b/docs/onboarding.md
index dc8f072..feb4b7d 100644
--- a/docs/onboarding.md
+++ b/docs/onboarding.md
@@ -785,20 +785,26 @@
implementing bug fixes are expected to include new regression tests specific to
the issue being fixed.
-### Running Tests
+### Running tests {#run-tests}
-#### Single Test Class or Method
+Generally, tests in the AndroidX repository should be run through the Android
+Studio UI. You can also run tests from the command line or via remote devices on
+FTL, see
+[Running unit and integration tests](/company/teams/androidx/testing.md#running)
+for details.
-1. Open the desired test file in Android Studio.
-2. Right-click on a test class or @Test method name and select `Run FooBarTest`
+#### Single test class or method
-#### Full Test Package
+1. Open the desired test file in Android Studio
+2. Right-click on a test class or `@Test` method name and select `Run <name>`
-1. In the project side panel open the desired module.
-2. Find the directory with the tests
-3. Right-click on the directory and select `Run androidx.foobar`
+#### Full test package
-### Running Sample Apps
+1. In the `Project` side panel, open the desired module
+2. Find the package directory with the tests
+3. Right-click on the directory and select `Run <package>`
+
+### Running sample apps {#run-samples}
The AndroidX repository has a set of Android applications that exercise AndroidX
code. These applications can be useful when you want to debug a real running