<commit_before># SwiftCov

Super early tool (read: not working) to generate test code coverage information
for Swift.

## Usage

```shell
$ swiftcov generate xcodebuild -project Example.xcodeproj -scheme 'Example' -configuration Release -sdk iphonesimulator test
```

```shell
$ swiftcov generate --output ./coverage --threshold 1 xcodebuild -project Example.xcodeproj -scheme 'Example' -configuration Release -sdk iphonesimulator test
```

### Options

- `--output` specify output directory for generated coverage files
- `--threshold` specify limitation for counting hit count (for performance)

## How to run example project

```shell
$ make install
```

```shell
$ cd Examples/ExampleFramework/
```

```shell
$ swiftcov generate --output coverage \
  xcodebuild -project ExampleFramework.xcodeproj \<commit_msg>Add installation instruction<commit_after># SwiftCov

Super early tool (read: not working) to generate test code coverage information
for Swift.

## Installation

Install the `swiftcov` command line tool by running `git clone` for this repo followed by `make install` in the root directory. Make sure that Xcode 6.3 is set in `xcode-select` before running `make`.

## Usage

```shell
$ swiftcov generate xcodebuild -project Example.xcodeproj -scheme 'Example' -configuration Release -sdk iphonesimulator test
```

```shell
$ swiftcov generate --output ./coverage --threshold 1 xcodebuild -project Example.xcodeproj -scheme 'Example' -configuration Release -sdk iphonesimulator test
```

### Options

- `--output` specify output directory for generated coverage files
- `--threshold` specify limitation for counting hit count (for performance)

## How to run example project

```shell
$ make install
```

```shell
$ cd Examples/ExampleFramework/
```

```shell
$ swiftcov generate --output coverage \
  xcodebuild -project ExampleFramework.xcodeproj \
{'fraction_non_alphanumeric': 0.10193133047210301, 'fraction_numerical': 0.002145922746781116, 'mean_word_length': 4.685975609756097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '392033', 'n_tokens_mistral': 519, 'n_tokens_neox': 495, 'n_words': 204}