Re: Junits dont run
jp_listero <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
thanks, I can do it, My target was in "clean" I change to "test" and all the Junits run ... :) I have and other problem ... I have a Junit with 2 test ... 1) assertTrue(true); 2) assertTrue(false); In the output of the cruisecontrol: BUILD FAILED [cc]nov-11 11:58:02 ScriptRunner - /root/svn/sw2-svn2/test/src/SW2.Tester2/nbproject/build-impl.xml:692: Some tests failed; see details above and ... [cc]nov-11 11:57:41 ScriptRunner - [junit] Testsuite: iso.EchoJUnitTest [cc]nov-11 11:57:41 ScriptRunner - [junit] false [cc]nov-11 11:57:41 ScriptRunner - [junit] true [cc]nov-11 11:57:41 ScriptRunner - [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0,102 sec [cc]nov-11 11:57:41 ScriptRunner - [junit] [cc]nov-11 11:57:41 ScriptRunner - [junit] ------------- Standard Output --------------- [cc]nov-11 11:57:41 ScriptRunner - [junit] false [cc]nov-11 11:57:41 ScriptRunner - [junit] true [cc]nov-11 11:57:41 ScriptRunner - [junit] ------------- ---------------- --------------- [cc]nov-11 11:57:41 ScriptRunner - [junit] Testcase: assertFalse(iso.EchoJUnitTest): FAILED [cc]nov-11 11:57:41 ScriptRunner - [junit] [cc]nov-11 11:57:41 ScriptRunner - [junit] junit.framework.AssertionFailedError: [cc]nov-11 11:57:41 ScriptRunner - [junit] at iso.EchoJUnitTest.assertFalse(EchoJUnitTest.java:46) [cc]nov-11 11:57:41 ScriptRunner - [junit] [cc]nov-11 11:57:41 ScriptRunner - [junit] [cc]nov-11 11:57:42 ScriptRunner - [junit] Test iso.EchoJUnitTest FAILED but in the web ...he puts Build Success ... (an older build for example 2 days ago) and Test Results iso.EchoJUnitTest Tests: 1, Failures: 0, Errors: 0, Duration: 91.0 Is there a way to show me the last try to build and the last results of the runs of the Junits ? thanks! 2010/11/9 Jeffrey Fredrick <[email protected]>: > You'll need to modify your Ant build.xml and update JUnit task to use the > xml formatter. > http://ant.apache.org/manual/Tasks/junit.html > > Jtf > > On Tue, Nov 9, 2010 at 8:07 AM, jp_listero <[email protected]> wrote: >> >> How I do that ? >> >> "Perhaps the JUnit results are not being captured correctly. Ensure >> that your <junit> ant task contains the proper formatting directive to >> instruct JUnit to output the results in XML format: <formatter >> type="xml"/>. If you are directing JUnit to send output to a >> subdirectory, make sure to tell CC about it - use the <merge> element >> in the <log> section of your config.xml." >> >> I'm using Netbeans 6.8 and JUnit 4.5 >> >> thanks a lot! >> >> 2010/11/9 Jeffrey Fredrick <[email protected]>: >> > >> > You might also make sure you have Ant configured so that the junit task >> > creates xml output: >> > http://cruisecontrol.sourceforge.net/faq.html#nojunit >> > Jtf >> > >> > On Mon, Nov 8, 2010 at 9:35 AM, Amit Kumar <[email protected]> >> > wrote: >> >> >> >> Try pointing the log > merge to correct junit report directorylike this >> >> <log> >> >> <merge dir="projects/${project.name}/testreport/"/> >> >> </log> >> >> >> >> Amit >> >> On Mon, Nov 8, 2010 at 9:12 AM, jp_listero <[email protected]> wrote: >> >>> >> >>> Hi, I'm very new with cruise control. I'm using netbeans ... and I >> >>> have a Suit Case with some JUnits ... >> >>> My problem is that the Test Suits doesnt run in the crusier control >> >>> ... The build is fine, also in the tab of Test, it say "No test cases >> >>> found". >> >>> >> >>> someone can help me ? >> >>> >> >>> thranks! >> >>> >> > >> > >> > -- >> > CITCON >> > Continuous Integration and Testing Conference >> > http://www.citconf.com/ >> > >> > >> > ------------------------------------------------------------------------------ >> > The Next 800 Companies to Lead America's Growth: New Video Whitepaper >> > David G. Thomson, author of the best-selling book "Blueprint to a >> > Billion" shares his insights and actions to help propel your >> > business during the next growth cycle. Listen Now! >> > http://p.sf.net/sfu/SAP-dev2dev >> > _______________________________________________ >> > Cruisecontrol-user mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user >> > >> > >> >> >> ------------------------------------------------------------------------------ >> The Next 800 Companies to Lead America's Growth: New Video Whitepaper >> David G. Thomson, author of the best-selling book "Blueprint to a >> Billion" shares his insights and actions to help propel your >> business during the next growth cycle. Listen Now! >> http://p.sf.net/sfu/SAP-dev2dev >> _______________________________________________ >> Cruisecontrol-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > > > -- > CITCON > Continuous Integration and Testing Conference > http://www.citconf.com/ > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > Cruisecontrol-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user > > ------------------------------------------------------------------------------ Centralized Desktop Delivery: Dell and VMware Reference Architecture Simplifying enterprise desktop deployment and management using Dell EqualLogic storage and VMware View: A highly scalable, end-to-end client virtualization framework. Read more! http://p.sf.net/sfu/dell-eql-dev2dev