vendredi 28 septembre 2018

How to run all tests in a nested directory in Android Studio. Error: 0 tests classes found in package

I have tests in Android Studio that I can run individually. However I can't run all tests in a directory. I get the following error:

0 test classes found in package '<default package>'

My tests are following the package structure of the app, so they are in directories such as this:

/test/java/myapp/
    domain/
        MyDomain1Tests.kt
        MyDommain2Tests.kt
    ui/
        MyUi1Tests
        MyUi2Tests

Does Android Studio support this? Surely it must, but I can't find out how.

Aucun commentaire:

Enregistrer un commentaire