pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
junit test results
3+ messages / 3 participants
[nested] [flat]

* junit test results
@ 2007-04-14 22:45 Frank Spies <frankspies@gmx.de>
  2007-04-16 19:51 ` Re: junit test results Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Frank Spies @ 2007-04-14 22:45 UTC (permalink / raw)
  To: pgsql-jdbc

Hi all,

I checked out the code and tried to build it in Hudson
(hudson.dev.java.net). To use the JUnit test reports Hudson (and
probably most other tools that can do JUnit reporting) requires that the
results are written to files. I changed that in build.xml, please have a
look...

Attachments:

build.xml.diff (text/x-patch, 3.5K) download # This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/frank/docs/java/pgjdbc # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: build.xml *** /home/frank/docs/java/pgjdbc/build.xml Base (1.72) --- /home/frank/docs/java/pgjdbc/build.xml Locally Modified (Based On 1.72) *************** *** 359,365 **** <mkdir dir="${jardir}" /> </target> - <!-- This target removes any class files from the build directory --> <target name="clean"> <delete quiet="true" dir="${builddir}" /> --- 359,364 ---- *************** *** 413,423 **** <fail message="Your version of ant doesn't seem to have the junit task available. I looked for org.apache.tools.ant.taskdefs.optional.junit.JUnitTask, but I couldn't find it." unless="junit.task" /> <delete file="postgresql-jdbc-tests.debug.txt"/> ! <junit> <formatter type="brief" usefile="false"/> <sysproperty key="server" value="${server}" /> --- 412,425 ---- <fail message="Your version of ant doesn't seem to have the junit task available. I looked for org.apache.tools.ant.taskdefs.optional.junit.JUnitTask, but I couldn't find it." unless="junit.task" /> <delete file="postgresql-jdbc-tests.debug.txt"/> ! ! <!-- base dir for test results --> ! <property name="testResultsDir" value="${builddir}/testresults" /> ! <mkdir dir="${testResultsDir}" /> ! ! <junit > <formatter type="brief" usefile="false"/> + <formatter type="xml" usefile="true" /> <sysproperty key="server" value="${server}" /> <sysproperty key="port" value="${port}" /> *************** *** 425,430 **** --- 430,436 ---- <sysproperty key="loglevel" value="${loglevel}" /> <sysproperty key="protocolVersion" value="${protocolVersion}" /> + <classpath> <pathelement location="${jardir}/postgresql.jar" /> <pathelement location="${jardir}/postgresql-tests.jar" /> *************** *** 431,441 **** <pathelement path="${java.class.path}" /> </classpath> ! <test name="org.postgresql.test.jdbc2.Jdbc2TestSuite" if="junit" /> ! <test name="org.postgresql.test.jdbc2.optional.OptionalTestSuite" if="jdbc2optionaltests"/> ! <test name="org.postgresql.test.jdbc3.Jdbc3TestSuite" if="jdbc3tests"/> ! <test name="org.postgresql.test.xa.XATestSuite" if="jdbc3tests"/> ! <test name="org.postgresql.test.jdbc4.Jdbc4TestSuite" if="jdbc4tests" /> </junit> </target> --- 437,447 ---- <pathelement path="${java.class.path}" /> </classpath> ! <test name="org.postgresql.test.jdbc2.Jdbc2TestSuite" if="junit" outfile="${testResultsDir}/jdbc2"/> ! <test name="org.postgresql.test.jdbc2.optional.OptionalTestSuite" if="jdbc2optionaltests" outfile="${testResultsDir}/jdbc2optional"/> ! <test name="org.postgresql.test.jdbc3.Jdbc3TestSuite" if="jdbc3tests" outfile="${testResultsDir}/jdbc3"/> ! <test name="org.postgresql.test.xa.XATestSuite" if="jdbc3tests" outfile="${testResultsDir}/xa"/> ! <test name="org.postgresql.test.jdbc4.Jdbc4TestSuite" if="jdbc4tests" outfile="${testResultsDir}/jdbc4"/> </junit> </target>
^ permalink raw reply [nested|flat] 3+ messages in thread

* Re: junit test results
  2007-04-14 22:45 junit test results Frank Spies <frankspies@gmx.de>
@ 2007-04-16 19:51 ` Kris Jurka <books@ejurka.com>
  2007-04-16 23:55   ` Re: junit test results Kris Jurka <jurka@ejurka.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Kris Jurka @ 2007-04-16 19:51 UTC (permalink / raw)
  To: Frank Spies <frankspies@gmx.de>; +Cc: pgsql-jdbc



On Sun, 15 Apr 2007, Frank Spies wrote:

> I checked out the code and tried to build it in Hudson
> (hudson.dev.java.net). To use the JUnit test reports Hudson (and
> probably most other tools that can do JUnit reporting) requires that the
> results are written to files. I changed that in build.xml, please have a
> look...
>

Could you create this patch outside of Netbeans?  Netbeans produces 
invalid patch files that I cannot apply:

jurka@tony:~/pg/jdbc/projects/junitlog$ patch -p6 < build.xml.diff 
patching file build.xml
patch: **** Premature `---' at line 28; check line numbers at line 20

Kris Jurka




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: junit test results
  2007-04-14 22:45 junit test results Frank Spies <frankspies@gmx.de>
  2007-04-16 19:51 ` Re: junit test results Kris Jurka <books@ejurka.com>
@ 2007-04-16 23:55   ` Kris Jurka <jurka@ejurka.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Kris Jurka @ 2007-04-16 23:55 UTC (permalink / raw)
  To: Frank Spies <frankspies@gmx.de>; +Cc: pgsql-jdbc

Frank Spies wrote:
> here it is...
> 
>> Could you create this patch outside of Netbeans?  Netbeans produces 
>> invalid patch files that I cannot apply:
>>

Uggh.  That's even worse, with gratuitous whitespace changes all over 
the place.  I've manually extracted your chnages out of the initial 
patch and applied them.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-04-16 23:55 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-04-14 22:45 junit test results Frank Spies <frankspies@gmx.de>
2007-04-16 19:51 ` Kris Jurka <books@ejurka.com>
2007-04-16 23:55   ` Kris Jurka <jurka@ejurka.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox