Confirmed users
975
edits
Line 113: | Line 113: | ||
* Supports [http://mockito.org/ Mockito] for custom mocking (see [http://mxr.mozilla.org/mozilla-central/source/mobile/android/tests/background/junit4/src/org/mozilla/gecko/dlc/TestVerifyAction.java TestVerifyAction for a sample]). | * Supports [http://mockito.org/ Mockito] for custom mocking (see [http://mxr.mozilla.org/mozilla-central/source/mobile/android/tests/background/junit4/src/org/mozilla/gecko/dlc/TestVerifyAction.java TestVerifyAction for a sample]). | ||
* Run specific tests from the IDE: select the "Build Variants" menu (bottom left), change "Test Artifact" to "Unit Tests", right-click on the test class you want to run, and select the "Run <test-class>" option. | * Run specific tests from the IDE: select the "Build Variants" menu (bottom left), change "Test Artifact" to "Unit Tests", right-click on the test class you want to run, and select the "Run <test-class>" option. | ||
* Some tests will fail with encryption errors if you do not install the appropriate packages: https://mail.mozilla.org/pipermail/mobile-firefox-dev/2015-September/001499.html | |||
=== integration tests === | === integration tests === |