how to get total coverage and exclude some classes?

29 views
Skip to first unread message

monamiu

unread,
Nov 23, 2013, 9:09:33 PM11/23/13
to coverstor...@googlegroups.com

Hi Guys,

I just tried to check the code coverage using cover story in Xcode 4.6 and I am able to generate .gcda and .gcno files and check the individual coverage of each file. how can I get the overall code coverage, not individually for each file but the overall coverage for all the files of the project?

Also, I want to exclude some classes in the cover story while checking the code coverage. I am not able to do so as it is again covering all the classes. I tried to exclude files from:

CoverStory?->Preferences->SDK Files ........and included the file I want to exclude. But it is not working.

I followed this link : http://iosunittesting.com/configuring-coverstory/

Thanks!

Thomas Van Lenten

unread,
Nov 24, 2013, 8:54:32 PM11/24/13
to coverstory-discuss
On Sat, Nov 23, 2013 at 9:09 PM, monamiu <mon...@gmail.com> wrote:

Hi Guys,

I just tried to check the code coverage using cover story in Xcode 4.6 and I am able to generate .gcda and .gcno files and check the individual coverage of each file. how can I get the overall code coverage, not individually for each file but the overall coverage for all the files of the project?


The header over the top of the source list should give you the total percentage.
 

Also, I want to exclude some classes in the cover story while checking the code coverage. I am not able to do so as it is again covering all the classes. I tried to exclude files from:

CoverStory?->Preferences->SDK Files ........and included the file I want to exclude. But it is not working.


The sdk exclude is for leaving out system files/headers.  There is a toggle for it in the toolbar (in/out of the count).


--
You received this message because you are subscribed to the Google Groups "coverstory-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coverstory-disc...@googlegroups.com.
To post to this group, send email to coverstor...@googlegroups.com.
Visit this group at http://groups.google.com/group/coverstory-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages