This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run iOS Unit Tests from the command line with Xcode 4.5 and iOS 6 | |
# Adapted from Scott Thompson at http://stackoverflow.com/a/10823483/1359212 | |
# | |
# Steps: | |
# 1. Create a new Xcode Scheme for the Tests target | |
# 2. Edit the Tests Scheme so that the "Run" checkbox is checked for the Tests target | |
# 3. Use this script as the Test Target's "Run Script" entry on the "Build Phases" tab | |
# 4. Run tests from the command line with: | |
# xcodebuild -sdk iphonesimulator -scheme 'TestSchemeName' build SL_RUN_UNIT_TESTS=YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// IPInsetLabel.h | |
// Instapaper | |
// | |
// Created by Marco Arment on 7/23/11. | |
// Copyright 2011 Instapaper LLC, released to the public domain. | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools/RunPlatformUnitTests | |
# around line 93 | |
if [ "${TEST_HOST}" != "" ]; then | |
if [ "${RUN_SIMULATOR_TESTS}" = "YES" ]; then | |
export OTHER_TEST_FLAGS="-RegisterForSystemEvents" | |
RunTestsForApplication "${TEST_HOST}" "${TEST_BUNDLE_PATH}" | |
else | |
Warning ${LINENO} "Skipping tests; the iPhoneSimulator platform does not currently support application-hosted tests (TEST_HOST set)." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace GenericImplementationMapping | |
{ | |
internal class AutomatedNoteStrategyCustomer : IsAAutomatedNoteStrategy<Customer> | |
{ | |
private Customer _parent; |