<div dir="ltr"><div class="" id="magicdomid5"><span class="">Hello everyone,</span></div><div class="" id="magicdomid6"><br></div><div class="" id="magicdomid7"><span class="">I
wanted to let you know that the we are trying to provide Android Unit
test support that runs in a local JVM instead of phone/emulator (bug
1182193)</span><span class="">. We've imported the existing Android Sync test suite as a proof of concept.</span></div><div class="" id="magicdomid8"><br></div><div class="" id="magicdomid9"><span class="">As
a part of this change, we have raised the Gradle plugin version to 1.3.0 . I
have tested that this update does not break the IDE integration with the
latest IntelliJ (14.1.4) and Android Studio (1.3.2)</span></div><div class="" id="magicdomid10"><br></div><div class="" id="magicdomid11"><span class="">Please file a bug CCing me (:vivek) and Nick (:nalexander) if you find any incompatibility with IntelliJ or Android Studio. </span></div><div class="" id="magicdomid12"><br></div><div class="" id="magicdomid13"><span class="">The Android Sync test files are in mobile/android/</span><span class="">tests/background/junit4/</span><span class=""> You can run the unit tests by running |mach gradle </span><span class="">cleanTest test</span><span class="">|. The tests aren't run unless you ask for them, and aren't run in automation (yet).</span></div><div class="" id="magicdomid14"><br></div><div class="" id="magicdomid15"><span class="">Depending on your setup, you may notice that </span><span class="">the</span><span class=""> </span><span class="">tests fail</span><span class=""> with the following exception</span></div><div class="" id="magicdomid16"><span class="">"org.mozilla.gecko.sync.crypto.CryptoException"</span></div><div class="" id="magicdomid17"><br></div><div class="" id="magicdomid18"><span class="">You will need to update your Sun Java Cryptographic Policy to resolve this.</span></div><div class="" id="magicdomid19"><span class="">Go to </span><span class=""><a href="http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html">http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html</a></span><span class=""> accept the license agreement, and download the file named UnlimitedJCEPolicyJDK7.zip</span></div><div class="" id="magicdomid20"><span class="">Extract and copy US_export_policy.jar & local_policy.jar to JAVA_HOME/jre/lib/security/ .</span></div><div class="" id="magicdomid21"><br></div><div class="" id="magicdomid22"><br></div><div class="" id="magicdomid23"><span class="">Best,</span></div><div class="" id="magicdomid24"><span class="">Vivek</span></div></div>