1.

Why Does Junit Only Report The First Failure In A Single Test?

Answer»

Reporting multiple failures in a single TEST is GENERALLY a sign that the test does too much and it is too big a unit test. JUnit is DESIGNED to work best with a number of SMALL tests. It executes each test within a SEPARATE instance of the test class. It reports failure on each test.

Reporting multiple failures in a single test is generally a sign that the test does too much and it is too big a unit test. JUnit is designed to work best with a number of small tests. It executes each test within a separate instance of the test class. It reports failure on each test.



Discussion

No Comment Found