Search code examples
androidandroid-studiokotlinandroid-testing

why does my Android Studio Project not have "androidTest"and "test" folder


I'm trying to practice testing on andoid studio. I'm following a Android Developer tutorial. But I noticed my project doesn't have the androidTest folder or the test. It only has the main folder.

Here's what I mean:

Image of Android Studio Directory Lacking androidTest and Test folder

I tried to rebuild project, that didn't help. Please I would appreciate any help. And I'll be happy to provide any information needed.

Thanks for your help in Advance.


Solution

  • You can bring androidTest and Test packages again.

    only usage

    Image

    java - right click - package and androidTest or unitTest select.

    Image 2