6

So i have an eclipse project, with a bunch of junit test files. I want to run all of them, except ones that have a certain suffix (or inversely, only those that have one of a set of suffixes).

Eg, i can do this in maven; i can run all tests in a project that are in files that end in "Test", and all other files are ignored.

I want to do something similar in eclipse w/o having to configure things; just based on names. Right now i would go to "run configurations.." and then select "run all tests in a selected project..", but it'll run everything it finds in there; i want to omit files based on their suffix.

Is there a way to do this in eclipse?

Kai
  • 38,985
  • 14
  • 88
  • 103
Jack
  • 2,206
  • 3
  • 18
  • 25
  • See if the my answer [here](http://stackoverflow.com/questions/9314834/how-to-exclude-a-test-from-a-test-application-using-eclipse-android-junit-launch) helps. It is related to Android, but similar for configuring JUnit. – yorkw May 07 '12 at 23:43

1 Answers1

1

There are several options:

Community
  • 1
  • 1
alexsmail
  • 5,661
  • 7
  • 37
  • 57