Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I delete the folder androidTest if I don't do test in Android studio?

I find there is a folder named androidTest in Android studio project, Can I delete the folder androidTest if I don't do test in Android studio?

like image 497
HelloCW Avatar asked Jun 01 '15 02:06

HelloCW


People also ask

Should I delete unused android studio directories?

TL;DR: No. It will not cause any problems. Hidden folders in your home directory should contain only application settings.

When should you use the androidTest directory to store your test classes?

When the tests consist only of unit tests. When the number of tests to run is large(500+). When the tests need to run on your local machine.

What is androidTest?

src/androidTest is for unit tests that involves android instrumentation. src/test is for pure unit test that do not involve android framework. You can run tests here without running on a real device or on emulator. You can use both folders. Use the first one to test code that use Android framework.

Is it safe to delete the .android folder?

Please don`t delete . android because this folder contain some setting that enable app to be installed and run on android emulator or device. If you delete this folder, apk installation will be rejected during installation in the android device or emulator.


1 Answers

Yes, you can delete it if you don't wanna use it.

like image 154
Santiago Avatar answered Oct 11 '22 15:10

Santiago