4

After migrating to AS 3.2 android JUnit test run configuration does not work, all types "All in directory", "All in package" etc. I mean it does work, but always claims that:

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

Process finished with exit code 254
Empty test suite.

using ./gradlew test triggers every test

and every single test can be run by AS using that green play button inside editor (for class or single method)

enter image description here

but not for package, module etc.

How to fix that ?

many thanks

Wojtek

wojciech_maciejewski
  • 1,277
  • 1
  • 12
  • 28

2 Answers2

0

Declare your test classes as public

Danimate
  • 69
  • 1
  • 3
0

Fixed in Android Studio 3.2.1

So just update AS to newest version and the problem disappears

wojciech_maciejewski
  • 1,277
  • 1
  • 12
  • 28