Proposals for improving the Java testsPage edited by Phil HarveyChanges (3)
Full ContentThere have been several informal discussions recently about what we should do to improve the Java tests, particularly the system tests. The purpose of this page is to record what has been agreed and to give the wider community an opportunity to participate. The problems
The solutionsHere are some things that have been suggested that would improve matters. Speeding up the test suiteRationalise the system tests and remove redundant onesWe suspect that a number of system tests are near-duplicates of each other. To resolve this, we need to:
Make it easy to omit slow tests from the test suiteWe believe that, according the Pareto principle, most of the time is taken up by a small number of tests. For example, some system tests take several minutes but most complete within a few seconds. If should be easy to create a "fast test suite" that excludes the very slow tests. Developers would run this test suite very frequently when coding. The fact that any tests would be excluded from the suite is not ideal, but at least this is better than not running the tests at all. This would be possible to do using our existing test-profiles approach, but may be easier using JUnit4 categories (http://kentbeck.github.com/junit/javadoc/latest/org/junit/experimental/categories/Categories.html). An added benefit of Categories is that they allow us to categorise test classes "in-line" rather than storing their names in a separate file. This reduces the chance of the class name in a test exclusion becoming incorrect after, say, the test's package changes. Consider not restarting the broker between system testsIf there's a way to re-use the same broker instance for multiple tests, this would save significant time on the spawned and possibly even the in-process system tests. Removing sporadic test failuresEach sporadically-failing test should be examined in turn. The following questions should be asked:
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Qpid > Proposals for improving the Java tests confluence
- [CONF] Apache Qpid > Proposals for improving the Java t... confluence
