Re: Code Coverage tools on Mac side
Re: Code Coverage tools on Mac side
- Subject: Re: Code Coverage tools on Mac side
- From: Jeremy Higgs <email@hidden>
- Date: Thu, 5 Jan 2006 14:52:00 +1100
Hi Chris,
Thought I'd chime in here... Thanks for those links. I've followed the
steps on SuperMegaUltraGroovy and have the code coverage working,
which is really neat! Can anyone comment of the likelihood of the
Xcode team integrating that into Xcode further? (Basically flipping a
switch to enable the code coverage output.)
What I'm really looking for is showing the code coverage in the editor
(ala Clover - http://www.cenqua.com/clover/), which is simply awesome
in IntelliJ IDEA. (See
http://www.cenqua.com/images/clover/idea4_ss.gif for an example of the
output.) I hacked up a little app the other day that would parse the
gcov output and render each line's background differently based on
whether it was executed or not. But I wonder... would there be a way
to get this to show up in Xcode itself (through a plugin)? Or is this
something that might appear in a future release?
Thanks!
Jeremy
On 1/5/06, Chris Hanson <email@hidden> wrote:
> On Jan 3, 2006, at 10:56 PM, email@hidden wrote:
>
> > 1> Code coverage tools on Mac Os X
>
> Xcode includes the GNU Compiler Collection (GCC) C, C++ and Objective-
> C compiler, which also includes the gcov code-coverage measurement
> utility.
>
> > 2> URLs to delve into the details of these tools
> > 3> What exactly is meant by code coverage tools? Does it mean that
> > as &
> > when we run our test cases the tool gives us the percentage of code
> > covered?
>
> This URL is the first hit when I use Google to search for gcov:
>
> <http://gcc.gnu.org/onlinedocs/gcc-3.0/gcc_8.html>
>
> It describes both the use and purpose of gcov. See below for more on
> using gcov with unit testing.
>
> > 4> Tools to automate the testing (test cases) on Mac Os x. Is
> > Eggplant a
> > solution to this?
>
> Xcode 2.1 and later include support for unit testing and two unit
> testing frameworks, OCUnit for writing Objective-C unit tests and
> CPlusTest for writing C++ unit tests. Here's a URL to the Xcode Unit
> Testing Guide:
>
> <http://developer.apple.com/documentation/DeveloperTools/Conceptual/
> UnitTesting/UnitTesting.html>
>
> Chris Liscio, a third-party developer, wrote a post on his weblog
> about using gcov to obtain code coverage metrics for unit tests via
> Xcode's unit testing support:
>
> <http://www.supermegaultragroovy.com/Software Development/
> xcode_code_coverage_howto>
>
> Eggplant is a third-party tool for performing user interface capture-
> and-playback testing on Mac OS X.
>
> -- Chris
>
> _______________________________________________
> 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
>
_______________________________________________
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