1
0
Fork 0
fenix/app/src
Michael Comella 6e0d851da3 For #9605: replace unit test runners with FenixRobolectricTestRunner.
This is how we can apply the new test runner to remove duplication.

This commit was generated programmatically with the following commands:
```
  // Replace test runners with new one.
  find app/src/test -type f -exec gsed -i "s/@RunWith(RobolectricTestRunner::class)/@RunWith(FenixRobolectricTestRunner::class)/" {} +
  find app/src/test -type f -exec gsed -i "s/@RunWith(AndroidJUnit4::class)/@RunWith(FenixRobolectricTestRunner::class)/" {} +

  // Replace imports of old test runners with new one
  find app/src/test -type f -exec gsed -i "s/org.robolectric.RobolectricTestRunner/org.mozilla.fenix.helpers.FenixRobolectricTestRunner/" {} +
  find app/src/test -type f -exec gsed -i "s/androidx.test.ext.junit.runners.AndroidJUnit4/org.mozilla.fenix.helpers.FenixRobolectricTestRunner/" {} +

  // Remove unused imports
  find app/src/test -type f -exec gsed -i "/@Config(application = TestApplication::class)/d" {} +
  find app/src/test -type f -exec gsed -i "/import org.mozilla.fenix.TestApplication/d" {} +
  find app/src/test -type f -exec gsed -i "/import org.robolectric.annotation.Config/d" {} +
```

Where gsed is the GNU version of sed installed via homebrew. After
running these commands, I need to manually clean up the following files:
- FenixRobolectricTestRunner
- LocaleManagerExtensionTest
2020-04-03 09:27:49 -07:00
..
androidTest No issue: re-enable libraryMenuItemsTest and backButtonTest (#9639) 2020-04-03 10:37:03 -04:00
debug Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fenixBeta/res Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fenixNightly Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fennecBeta/res Issue #8277: Move foreground drawable from drawable-v26/ to drawable/ 2020-02-17 11:37:15 +01:00
fennecNightly/res Optimize PNGs. 2020-02-14 09:41:54 -08:00
fennecProduction/res/xml Closes #8273: Add shortcuts.xml for fennecProduction variant. 2020-02-14 07:42:23 +01:00
geckoBeta/java/org/mozilla/fenix/engine Closes #7450: Lazy storage initialization 2020-03-19 15:46:50 -07:00
geckoNightly/java/org/mozilla/fenix/engine Closes #7450: Lazy storage initialization 2020-03-19 15:46:50 -07:00
main Update Android Components version to 38.0.20200403130109. 2020-04-03 16:15:31 +02:00
migration Pass lazy references to FennecMigrator 2020-03-26 11:57:45 -07:00
test For #9605: replace unit test runners with FenixRobolectricTestRunner. 2020-04-03 09:27:49 -07:00