db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew McIntyre (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-2006) Add JUnit and JUnitReport task as a target in Ant script
Date Fri, 03 Nov 2006 02:20:17 GMT
    [ http://issues.apache.org/jira/browse/DERBY-2006?page=comments#action_12446795 ] 
            
Andrew McIntyre commented on DERBY-2006:
----------------------------------------

Checked in revision 470636 which refactors junit-oneclass to always set the jvm for a junit
run from a property and default the property to 'java'. So, if the jvm has a different executable
name than 'java,' you can now override that by passing in derby.junit.jvm on the command-line.
e.g.:

ant -Dderby.junit.jvm=j9 junitreport

Also, the junit-jdbc4 target is now more like the junit-all target. Additional jdbc4 tests
can now be added to the junit-jdbc4 target simply by adding another <antcall>. For example,
to add jdbc4/AutoloadTest, add:

Index: build.xml
===================================================================
--- build.xml   (revision 470636)
+++ build.xml   (working copy)
@@ -1635,6 +1635,12 @@
       <param name="derby.junit.testname"
              value="org.apache.derbyTesting.functionTests.tests.jdbc4._Suite"/>
     </antcall>
+    <antcall target="junit-oneclass">
+      <param name="derby.junit.jvm"
+             value="${jdk16}/bin/java"/>
+      <param name="derby.junit.testname"
+             value="org.apache.derbyTesting.functionTests.tests.jdbc4.AutoloadTest"/>
+    </antcall>
   </target>
 
   <target name="junit-all" depends="junit-init,junit-jdbc4">



> Add JUnit and JUnitReport task as a target in Ant script
> --------------------------------------------------------
>
>                 Key: DERBY-2006
>                 URL: http://issues.apache.org/jira/browse/DERBY-2006
>             Project: Derby
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 10.3.0.0
>         Environment: Any
>            Reporter: Yip Ng
>         Assigned To: Andrew McIntyre
>             Fix For: 10.3.0.0
>
>         Attachments: derby_2006_v1.diff, derby_2006_v2.diff, derby_2006_v3.diff, derby_2006_v4.diff,
derby_2006_v5.diff, derby_2006_v6.diff, example_output.zip
>
>
> Ant has an optional tasks called JUnit and JUnitReport that runs JUnit tests and produces
JUnit report respectively.  It will be nice to have these mechanism incorporated into the
Ant script so one can easily kick off a JUnit test and view the result. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message