Android unit test best practices 1: Build the android studio test environment and android Best Practices

Source: Internet
Author: User
Tags goagent

Android unit test best practices 1: Build the android studio test environment and android Best Practices
Before using android studio for unit testing, you must install the plug-in for unit testing: android-studio-unit-test-plugin.

Press the shortcut key (alt + ctrl + S) to enter setting and select plugins.


But here you will find a small problem. The installation of plug-ins in android studio is extremely slow. Maybe you cannot even see the content of the remote library? Because you have been attacked by the wall, you certainly use the goagent to overturn the wall. If you have not installed the goagent, go here: Ghost. Start the goagent agent after installation:

Set the android studio Internet proxy: press the shortcut key (Alt + Ctrl + S) to enter setting ---> gradle ---> Gradle VM Options

-Dhttp. proxyHost = fig-Dhttp. proxyPort = 8087

After the setting is successful, restart androidstudio. The speed will be very fast.


After successful installation:


Introduction to robolectric

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.