CC hanging while running build and jUnit tests
"John Pagu" <[email protected]> Fri, 9 Jun 2006 11:18:40 -0400
| Newsgroups | gmane.comp.java.cruise-control.announce |
|---|---|
| Message-ID | <[email protected]> |
I hope this list is right for my question. I was posting to the member one and I was rejected :(. Here is my story: I initially had problems trying to run a suite that involves starting up Weblogic, running jUnits tests then shutting WL down. I fixed it by using parallel Ant task: <target name="test_container" depends="init" description="Run JUnit test"> <parallel > <antcall target= "start-wls" /> <sequential > ...wait then run jUnit then shut down WL </sequential > </parallel > </target> Then I wanted to move to the next step which involves building the application before running the jUnits. So I wrote another Ant script that simply calls our present build script, then the jUnit script. If I call it manually, it work fine. If I call it from CC, it hangs while trying to start WL. Even more disturbing, if I only call one of them (build or jUnit) from CC, it also works fine. Now I am looking for a way to decouple the two processes so that the first one will not cause CC to freeze on the second one. I thought one way to do it, would be to have multiple ant configurations under <schedule> element in the config.xml (documentation says this is allowed) however it doesn't work. CC doesn't complain about the second one but it doesn't run it either. Any idea why? Do you know another way to decouple the two processes? Thank you.