Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] JUnit Classpath in Batch Testing

I'll look at this when I get back home Sunday.

The builder taskdef knows how to build normal, test, and
combined modules - hence foo.jar, foo-test.jar, and
foo-test-all.jar.

The taskdef and hence the build machine should work fine
if you add the dependencies manually.  The problem is being
able to run the other tests in 1.4, so some segregation is
necessary (i.e., you can't add the dependency to all
modules without preventing runs in 1.4, right).  The
segregation we have 
(using the folder naming conventions) works, but it sounds
like it doesn't work for LTWWorld stuff.  (and as you
suggest, Ant doesn't know or care about eclipse launch
configurations)

Wes

On Fri, 9 Jun 2006 14:25:39 +0100
 Matthew Webster <matthew_webster@xxxxxxxxxx> wrote:
> One topic of discussion on the last AspectJ call
> concerned executing tests 
> with a Java 5 project dependency e.g. weaver5. The
> harness dynamically 
> adds these tests when running under Java 5. Unfortunately
> with the 
> introduction of LTWWorld 
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=140695)
> all the LTW tests 
> in the "tests" project have an implicit dependency on the
> Java 5 projects 
> when run under Java 5. This is OK when running 
> RunTheseBeforeYouCommitTests because the
> "run-all-junit-tests" project has 
> the right dependencies. This is not the case when running
> individual 
> testcases/suites in the "tests" project. On workaround is
> to manually add 
> the relevant projects to the Eclipse launch configuration
> but I am 
> concerned how this will work on the build machine.
> 
> I have looked at the <junit> task in build.xml and assume
> that "
> <pathelement
> location="${aj.jar.dir}/${module.name}-test-all.jar"/>"
> is 
> the classpath used for testing a particular project.
> However I cannot find 
> where the JAR is built and hence what it comprises. I
> would like to ensure 
> that the Java 5 projects e.g. weaver5 are on the
> classpath when testing 
> _every_ project.
> 
> Cheers
> 
> Matthew Webster
> AOSD Project
> Java Technology Centre, MP146
> IBM Hursley Park, Winchester,  SO21 2JN, England
> Telephone: +44 196 2816139 (external) 246139 (internal) 
> Email: Matthew Webster/UK/IBM @ IBMGB,
> matthew_webster@xxxxxxxxxx
> http://w3.hursley.ibm.com/~websterm/



Back to the top