> We could simply include those two classes in the normal openjpa.jar 1. Source code for these few classes will be useful to the test developers and should be distributed. 2. Distributing the test classes separately may simplify testing against different versions of openjpa.jar 3. The source code for a exemplar 'real' test and domain classes that use these base classes, follow naming/coding conventions should be distributed too.
The above considerations led me to suggest a separate (small) jar than piggybacking openjpa.jar for distribution. Patrick Linskey-2 wrote: > >>> So I guess it depends on what you mean by publish. >> >> OpenJPA build process will create a OPENJAP_TESTS.zip containing > > As it turns out, PersistenceTestCase, and SingleEMFTestCase (probably > the three most useful bits of JUnit-infrastructure) don't have much in > the way of external dependencies. We could simply include those two > classes in the normal openjpa.jar, maybe renaming them to > PersistenceTestBaseClass and SingleEMFTestBaseClass to avoid potential > issues with test-running infrastructures that scan the entire > classpath for things ending in TestCase. > > -Patrick > > On Jul 3, 2008, at 11:35 AM, Pinaki Poddar wrote: > >> >> I am in quite agreement with Mike's observations. >> >>> So I guess it depends on what you mean by publish. >> >> OpenJPA build process will create a OPENJAP_TESTS.zip containing >> 1. src/... includes Java source code for 4-5 basic test classes >> such as >> SingleEMFTestCase etc. It will not include the actual tests or just >> may be a >> few as exemplars. >> 2. OPENJPA-TESTS.jar contains compiled class files that are in >> src/... >> tree >> 3. HowToWriteATest.txt >> 4. A maven/ant build script that packs a user-written test in a >> way that >> when attached in JIRA can be easily ovelaid on our code repository >> >> This OPENJPA_TESTS.zip will be available in http://openjpa.apache.org. >> These artifacts will also be added to maven repository so that users >> can >> simply add the following to their own pom.xml as per Mike's >> observation. >> >> Detection of duplicate test is not critical at this juncture. To >> document >> what the available test corpus covers is a separate and broader >> activity. >> >> The submission of tests by the users has to go through a committer >> anyway >> and that process will filter out some duplications. The 4th artifact >> i.e. a >> script supplied with OPENJPA-TESTS.zip is to facilitate the process of >> absorbing the users' contribution into the code repository. >> >> An important blocker for this issue is, of course, current inability >> to >> include tests that do not pass (OPENJPA-123). >> >> >> -- >> View this message in context: >> http://n2.nabble.com/Collaborative-Testing-tp220418p220542.html >> Sent from the OpenJPA Developers mailing list archive at Nabble.com. >> > > -- > Patrick Linskey > 202 669 5907 > > > > -- View this message in context: http://n2.nabble.com/Collaborative-Testing-tp220418p363255.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.
