Hello,
I was trying to run unit-tests. I did the following ant run-single-test-suite -Dcomponent=party > console Thanks -Aswath I got the following errors in the console [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:73 :INFO ] [JUNIT] Pass: true | # Tests: 4 | # Failed: 0 # Errors: 0 [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:76 :INFO ] [JUNIT] ----------------------------- ERRORS ----------------------------- [JUNIT] [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:79 :INFO ] None [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:85 :INFO ] [JUNIT] ------------------------------------------------------------------ [JUNIT] [java] org.ofbiz.base.start.StartupException: Cannot start() org.ofbiz.testtools.TestRunContainer (No tests found (${test.component} / ${test.suiteName} / null)) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271) [java] at org.ofbiz.base.start.Start.startServer(Start.java:320) [java] at org.ofbiz.base.start.Start.start(Start.java:324) [java] at org.ofbiz.base.start.Start.main(Start.java:407) [java] org.ofbiz.base.container.ContainerException: No tests found (${test.component} / ${test.suiteName} / null) [java] at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:112) [java] at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101) [java] at org.ofbiz.base.start.Start.startStartLoaders(Start.java:271) [java] at org.ofbiz.base.start.Start.startServer(Start.java:320) [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:86 :INFO ] [JUNIT] ---------------------------- FAILURES ---------------------------- [JUNIT] [java] at org.ofbiz.base.start.Start.start(Start.java:324) [java] at org.ofbiz.base.start.Start.main(Start.java:407) [java] org.ofbiz.base.container.ContainerException: No tests found (${test.component} / ${test.suiteName} / null) |
I haven't tried this ant target. Will explore it soon and will let you
know how to use it. In the meantime you can try following command to test party component: java -Xmx1024M -jar ofbiz.jar -test -component=party -- Ashish aswath narayana wrote: > Hello, > I was trying to run unit-tests. I did the following > > ant run-single-test-suite -Dcomponent=party > console > > Thanks > -Aswath > > I got the following errors in the console > > [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:73 > :INFO ] [JUNIT] Pass: true | # Tests: 4 | # Failed: 0 # Errors: 0 > [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:76 > :INFO ] [JUNIT] ----------------------------- ERRORS > ----------------------------- [JUNIT] > [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:79 > :INFO ] None > [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:85 > :INFO ] [JUNIT] > ------------------------------------------------------------------ [JUNIT] > [java] org.ofbiz.base.start.StartupException: Cannot start() > org.ofbiz.testtools.TestRunContainer (No tests found (${test.component} / > ${test.suiteName} / null)) > [java] at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:103) > [java] at > org.ofbiz.base.start.Start.startStartLoaders(Start.java:271) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:320) > [java] at org.ofbiz.base.start.Start.start(Start.java:324) > [java] at org.ofbiz.base.start.Start.main(Start.java:407) > [java] org.ofbiz.base.container.ContainerException: No tests found > (${test.component} / ${test.suiteName} / null) > [java] at > org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:112) > [java] at > org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101) > [java] at > org.ofbiz.base.start.Start.startStartLoaders(Start.java:271) > [java] at org.ofbiz.base.start.Start.startServer(Start.java:320) > [java] 2009-06-16 16:36:45,656 (main) [ JunitContainer.java:86 > :INFO ] [JUNIT] ---------------------------- FAILURES > ---------------------------- [JUNIT] > [java] at org.ofbiz.base.start.Start.start(Start.java:324) > [java] at org.ofbiz.base.start.Start.main(Start.java:407) > [java] org.ofbiz.base.container.ContainerException: No tests found > (${test.component} / ${test.suiteName} / null) > > smime.p7s (4K) Download Attachment |
Free forum by Nabble | Edit this page |