Re: Xcode and WOUnitTest 2
Re: Xcode and WOUnitTest 2
- Subject: Re: Xcode and WOUnitTest 2
- From: Christian Pekeler <email@hidden>
- Date: Wed, 22 Nov 2006 20:13:12 -0700
This is slightly off-topic, but I'm wondering how to integrate
WOUnitTest 2/JUnit 4.1 and Xcode. According to Apple, Xcode can be
integrated with JUnit, but I can't find any documentation on how to
do it. I emailed the WOUnitTest author, but have gotten no response
back so far.
WOUnitTest 2 no longer includes an itegrated direct-action
testrunner like WOUnitTest 1 did, so I need to run the tests at
build-time.
I'd highly recommend using a java IDE for WO development. They almost
all have an integrated testrunner enabling efficient TDD-style
development. Once you've experienced those fast development/test
cycles, you won't believe you ever had the patients to start up a WO
application just to run a new test.
As far as testing at build-time is concerned, Michelle has already
given great pointers. I'll just add to that with another example for
testing framework and application projects from ant:
<target name="quicktest" depends="init" description="run all
unit tests without build dependencies">
<taskdef name="wounit"
classname="org.objectstyle.woproject.ant.WOUnit"/>
<wounit fork="true" forkmode='once' filtertrace="on"
haltonfailure="on" dir="${framework_install_dir}">
<classpath refid="testClasspath"/>
<frameworks root="${app_install_dir}" if="isApplication">
<include name="${ant.project.name}.woa/Contents"/>
</frameworks>
<frameworks root="${framework_install_dir}"
if="isFramework">
<include name="${ant.project.name}.framework"/>
</frameworks>
<frameworks root="${wo.dir.library.frameworks}">
<patternset refid="rootFrameworks"/>
</frameworks>
<frameworks root="${wo.dir.local.library.frameworks}">
<patternset refid="localrootFrameworks"/>
</frameworks>
<jvmarg value="-Djava.compiler=NONE"/>
<formatter type="brief" usefile="no"/>
<batchtest>
<fileset dir="test">
<include name="**/*Test.java"/>
</fileset>
</batchtest>
</wounit>
</target>
<target name="test" depends="install" description="run all unit
tests">
<antcall target="quicktest"/>
</target>
Christian
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden