pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Spies <frankspies@gmx.de>
To: pgsql-jdbc@postgresql.org
Subject: junit test results
Date: Sun, 15 Apr 2007 00:45:43 +0200
Message-ID: <1176590743.24955.5.camel@ubuntu> (raw)

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>

view thread (3+ messages)  latest in thread

Message-ID: <1176590743.24955.5.camel@ubuntu>
Permalink:  ../1176590743.24955.5.camel@ubuntu/
Also on:    postgresql.org/message-id/1176590743.24955.5.camel@ubuntu

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: frankspies@gmx.de
  Subject: Re: junit test results
  In-Reply-To: <1176590743.24955.5.camel@ubuntu>
  References: <1176590743.24955.5.camel@ubuntu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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