0

I have an Android project, which uses Maven. Originally, it worked fine with Eclipse (ADT).

But then I added a unit test and moved the source code from src to src/main/java directory and put my unit tests into src/test/java folder.

Thereafter Eclipse started to complain about wrong package names and refuses to run/debug my unit tests.

I tried to fix the problem by adding src/main/java and src/test/java to Java source path.

But this didn't help, I still can't run unit tests.

enter image description here

How can I fix this?

Glory to Russia
  • 17,289
  • 56
  • 182
  • 325

1 Answers1

0

I found out that MoreUnit allows to change the location of the unit tests. This solved my problem.

Glory to Russia
  • 17,289
  • 56
  • 182
  • 325