Eclipse - default JUnit 3

How can I tell my modern Eclipse (Galileo, Helios) that all unit tests in my workspace (or anywhere) are written in JUnit 3, and therefore I would like them to run with this older version of JUnit?

I am talking about the default project / workspace / system . Not a single specific test suite. I need to use JUnit 3 by default for all of these tiny 10-piece kits I come across.

+3
source share
2 answers

Go to the Runtoolbar icon , select โ€œRun Configurationsโ€, create a new JUnit configuration (or select an existing one), then select JUnit 3.

If you have already tried to run a test group, this group should appear as an existing entry in the JUnit menu.

It is worth noting that most JUnit3 tests can be run by the JUnit 4 tester. However, the JUnit4 runner cannot handle some of the more esoteric functions, such as specific test case configurations.

+1
source

Junit 3 Junit 4 - . SO question. , , , , Junit 4, .

0

Source: https://habr.com/ru/post/1755677/


All Articles