Skip to content

Commit

Permalink
Update Hilt's testing docs to remove note about limited support for R…
Browse files Browse the repository at this point in the history
…obolectric tests.

This should have been fixed with AGP 4.2 (latest release is AGP 8).

RELNOTES=N/A
PiperOrigin-RevId: 651159589
  • Loading branch information
bcorso authored and Dagger Team committed Jul 10, 2024
1 parent bec71b9 commit 1611627
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions hilt/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ title: Testing

## Introduction

**Note:** Currently, Hilt only supports Android instrumentation and Robolectric
tests (although, see [here](gradle-setup.md#running-with-android-studio) for
limitations when running Robolectric tests via Android Studio). In addition,
Hilt cannot be used in vanilla JVM tests, but it does not prevent you from
writing these tests as you would normally.
{: .c-callouts__note }

Hilt makes testing easier by bringing the power of dependency injection to your
Android tests. Hilt allows your tests to easily access Dagger bindings, provide
new bindings, or even replace bindings. Each test gets its own set of Hilt
Expand Down

0 comments on commit 1611627

Please sign in to comment.