• 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
Automating Ant+Junit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automating Ant+Junit


  • Subject: Automating Ant+Junit
  • From: Matthew Braun <email@hidden>
  • Date: Thu, 4 Nov 2004 12:11:25 -0600

Greetings,

I've been hunting all over the map for a clean and "standard" solution to this problem, but to no avail. I want to use unit testing with my Java code and have the tests run with every build. I've created my build.xml file based on samples I've found, but I keep getting the error:
Could not create task or type of type: junit
But only within XCode; from the CLI, everything is fine.


My classpath is:
> javaconfig DefaultClasspath
/Users/mjbraun/Library/Java:/Library/Java:/System/Library/Java:/ Network/Library/Java:/System/Library/Frameworks/JavaVM.framework/ Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/ Classes/ui.jar:/sw/lib/ant/lib/ant-junit.jar


And the relevant portions of my build.xml file are:

 <path id="classpath.test">
    <pathelement location="${tst-dir}" />
	<pathelement location="/Developer/Java/Ant/lib/ant-junit.jar" />
    <path refid="classpath.base" />
  </path>

and

  <target name="test" depends="compile-test">
    <junit>
      <classpath refid="classpath.test" />
      <formatter type="brief" usefile="false" />
      <test name="AllTests" />
    </junit>
  </target>

Is there a standardized build.xml file I can use that will make XCode happy? And is there a way I can change the default generated build.xml to that version?

Thanks!

--
"I must create a system, or be enslaved by another man's;
I will not reason and compare: my business is to create."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Can't create projects on network drives...
  • Next by Date: resources
  • Previous by thread: Re: Can't create projects on network drives...
  • Next by thread: resources
  • Index(es):
    • Date
    • Thread