Hi,
first off, using maven 1.0.2 multiproject to build, test and deploy about 8
sub-projects. Everything working there smoothly (got to love Maven! :) )
Now my question, many of my projects repeat the same unit test or data, so
the whole project suffers from the annoying / untidy symptom of "copy and
paste". So what I am wondering, is there an easier (cleaner) way to do it?
Example, I have 43 Tester.java classes for testing various different
packages. Each one of them has the following code,
public Tester(String a_name)
{
super(a_name);
}
/**
* Run all tests in this package.
*
* @param args
*/
public static void main(String[] args)
{
junit.textui.TestRunner.run(suite());
}
I mean, there must be a better way? There are over 500 unit tests in the
projects, so having one giant test suite is out of the question. Need some
sort of strategy to make common utility classes available to multiple
project and allow some form of inheritance from a base class.
I have some ideas, but really looking for alternatives, see if any one can
think of a better way. So does any one have any suggestions?
Cheers,
Rob
--
View this message in context:
http://www.nabble.com/Maven-multiproject%2C-test-inheritance-tf2409917.html#a6717273
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]