• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode and WOUnitTest 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Xcode and WOUnitTest 2 (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: EOQualifier issue
  • Next by Date: Re: Xcode and WOUnitTest 2
  • Previous by thread: Re: Xcode and WOUnitTest 2
  • Next by thread: WebServices Assistant: unable to launch
  • Index(es):
    • Date
    • Thread