<commit_before><commit_msg>Add README.<commit_after># Let's Unit Test with UIKit!
Ever wanted to test UIKit classes without otest crashing? Now you can.

## Wait, what?
The test runner that's distributed with Xcode is a Mac application and isn't set up to host instances of UIKit classes. There are other options, but none of them just simply ran SenTestCase test cases at build time, so I wrote my own.

## How do I use this?
1. Create a new Cocoa Touch application target called 'Test Runner'.
1. Edit the 'Test Runner' target and make it link against:
  - UIKit
  - Foundation
  - CoreGraphics
  - SenTestingKit (this is located in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/&lt;SDK&gt;/Developer/Library/Frameworks/SenTestingKit.framework)
1. Add `TestRunnerMain.m` to your target.
1. Add a new Run Script build phase to 'Test Runner'.
1. Edit that phase by double clicking on it, make sure the shell is set to /bin/sh, and the script to "PATH/TO/RunUnitTests.sh". Note that you can use the `$SRCROOT` environment variable. See the example project for an example.
1. Edit the target's Info.plist:
  - Remove the 'Main nib file base name' key.
  - Add the SenTestTool key with a value of YES.
1. To run all tests at build time, edit your main target and add Test Runner as a direct dependecy.

That's it! From now on, add any tests to the Test Runner target. Patches welcome to automate this process, perhaps with an Applescript?
{'fraction_non_alphanumeric': 0.06827586206896552, 'fraction_numerical': 0.004827586206896552, 'mean_word_length': 4.02076124567474, '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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3572685', 'n_tokens_mistral': 425, 'n_tokens_neox': 404, 'n_words': 220}