• 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: Code Coverage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Coverage


  • Subject: Re: Code Coverage
  • From: Alan Ward <email@hidden>
  • Date: Mon, 13 Jun 2005 09:52:20 -0700


Yeah... but!.... don't forget that KeyValueCoding will add a new wrinkle to this.
It's kinda tough for code coverage tools to recognize that


    component.takeValueForKey(foo, "bar");

is really the same as

    component.setBar(foo);

Just keep that in mind. Lot's of your code may be in frequent use but doesn't
appear to be referenced by any other code.


It's even better when you've got

    component.takeValueForKey(foo, bar);

(i.e. the key is non-literal) as there's no way for static analysis to determine the resulting call.

Alan


On Jun 13, 2005, at 9:26 AM, Sacha Mallais wrote:

On Jun 12, 2005, at 10:45 PM, Michael Holtermann wrote:


I've got another question: Is there someting like a code coverage tool
available for webobjects?



Use any code coverage tool for Java. Google'ing "java code coverage" gives this link:
http://emma.sourceforge.net/




I mean, how to find the methods and variables that will be never used?


This is not code coverage. The Eclipse compiler flags these kind of things automatically (well, variables, not methods...). I assume that xCode can too, though I don't know for sure.



sacha

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden


_______________________________________________ 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: 
 >Code Coverage (From: Michael Holtermann <email@hidden>)
 >Re: Code Coverage (From: Sacha Mallais <email@hidden>)

  • Prev by Date: Re: Junittests, JavaMail and language-specific Components
  • Next by Date: Re: WO and CoreData?
  • Previous by thread: Re: Code Coverage
  • Next by thread: Re: Code Coverage
  • Index(es):
    • Date
    • Thread