<commit_before>TestOutCoverage
===============

There are multiple workflows developing, testing, and checking coverage. Below is only a single example.


Example Workflow:
--------

1.) Build the sample app TestOutCoverage in XCode 5.
2.) Code the model objects and write XCTests for the model. (TDD works well for model classes)
3.) Run unit tests (individually or all).
4.) Launch CoverStory and open







See the following XCode Project for an example of using the patch(es). 

<a href="https://github.com/leroymattingly/XCode5gcovPatch/tree/master/TestOutCoverage">TestOutCoverage</a>



Force Code Coverage for UIAutomation Tests:
-------------------------------------------

The following code will force gcov to flush its metrics when the iOS app enters the background 
(command shit H in the simulator).

### UIApplication+GCovFlush.h

    #import <UIKit/UIKit.h>
    
    @interface UIApplication (GCovFlush)
    @end

    <commit_msg>fix new lines in read me<commit_after>TestOutCoverage
===============

There are multiple workflows developing, testing, and checking coverage. Below is only a single example.


Example Workflow:
--------

1.) Build the sample app TestOutCoverage in XCode 5.

2.) Code the model objects and write XCTests for the model. (TDD works well for model classes)

3.) Run unit tests (individually or all).

4.) Launch CoverStory and open







See the following XCode Project for an example of using the patch(es). 

<a href="https://github.com/leroymattingly/XCode5gcovPatch/tree/master/TestOutCoverage">TestOutCoverage</a>



Force Code Coverage for UIAutomation Tests:
-------------------------------------------

The following code will force gcov to flush its metrics when the iOS app enters the background 
(command shit H in the simulator).

### UIApplication+GCovFlush.h

    #import <UIKit/UIKit.h>
    
    @interface UIApplication (GCovFlush)
    @end

    
{'fraction_non_alphanumeric': 0.1331236897274633, 'fraction_numerical': 0.006289308176100629, 'mean_word_length': 3.140997830802603, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3362444', 'n_tokens_mistral': 563, 'n_tokens_neox': 522, 'n_words': 217}