You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates the [Automated Migration](https://robolectric.org/automated-migration/) page.
The changes are:
- Adding Kotlin code sample.
- Update the procedure to match recent versions of Error Prone.
Copy file name to clipboardExpand all lines: docs/automated-migration.md
+41-19Lines changed: 41 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,50 +10,72 @@ Robolectric provides an automated migration tool to help keep your test suite up
10
10
11
11
The migration tool will make changes directly to source files in your codebase, which you can review and commit to your source control system.
12
12
13
-
***Before*** updating your dependencies to the new version of Robolectric:
13
+
**Before** updating your dependencies to the new version of Robolectric:
14
14
15
15
1. Make sure you're using a recent version of Gradle (4.10 or newer).
16
16
17
-
2.[Configure your project](https://errorprone.info/docs/installation) to compile using Error Prone. Quick config for Gradle (usually in `app/build.gradle`):
17
+
2.[Configure your project](https://errorprone.info/docs/installation) to integrate Error Prone. Quick config for Gradle (usually in your module's `build.gradle`/`build.gradle.kts` file):
18
+
19
+
=== "Groovy"
18
20
19
21
```groovy
20
22
plugins {
21
-
id "net.ltgt.errorprone" version "0.6" apply false
23
+
id "net.ltgt.errorprone" version "<error_prone_plugin_version>" apply false
4. Make sure your code still compiles and commit changes.
56
78
57
79
5. Update your project to the new version of Robolectric.
58
80
59
-
The migration tool will make a best effort attempt to adjust source, but there might be more complicated situations that it cannot handle and that need to be converted manually.
81
+
The migration tool will make a best effort attempt to adjust the source code, but there might be more complicated situations that it cannot handle and that need to be converted manually.
0 commit comments