OK - magic bootstrap is building fine. We then move on to magic building magic. Everything starts of fine - compilation, jar file creation, md5, bar file creation .. and then unit testing. Keep in mind that in magic unit tests are done relative to test classpath combined with the jar file of the target project (this way we ensure we are testing against the deliverable jar).


OK - here's the log from gump:

  [x:junit] Running org.apache.avalon.tools.model.test.ContextTestCase
Class org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFor
matter loaded from parent loader (parentFirst)
Class org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultForma
tter loaded from parent loader (parentFirst)
  [x:junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
  [x:junit] Test org.apache.avalon.tools.model.test.ContextTestCase FAILED

Here is the log when I execute the same thing locally:

  [x:junit] Running org.apache.avalon.tools.model.test.ContextTestCase
  [x:junit] Tests run: 19, Failures: 0, Errors: 0, Time elapsed: 0.359 sec

Now apparently the error is a ClassNotFoundException (corresponding to the test case class). I have a sneaking suspision that we have classloader conflict here where the ContextTestCase class exists in two classloaders at the same time or something like that. As a first step - could someone with access to brutus send me the unit test report file:

/usr/local/gump/public/workspace/avalon-tools/tools/magic/target/test-reports
TEST-org.apache.avalon.tools.model.test.ContextTestCase.txt

Cheers, Steve.

--

|---------------------------------------|
| Magic by Merlin                       |
| Production by Avalon                  |
|                                       |
| http://avalon.apache.org              |
|---------------------------------------|


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to