Skip to content

Commit

Permalink
Setup integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Nikolskyi committed Jun 3, 2015
1 parent f80b5f5 commit 437fd5e
Show file tree
Hide file tree
Showing 6 changed files with 448 additions and 31 deletions.
245 changes: 216 additions & 29 deletions ConnectSDK.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions ConnectSDK.xcodeproj/xcshareddata/xcschemes/ConnectSDK.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,20 @@
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "NO"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44E98FAC1B1E84880043BC70"
BuildableName = "ConnectSDKIntegrationTests.xctest"
BlueprintName = "ConnectSDKIntegrationTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0630"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44E98FAC1B1E84880043BC70"
BuildableName = "ConnectSDKIntegrationTests.xctest"
BlueprintName = "ConnectSDKIntegrationTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "NO"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44375E7E1A25265600D2F6DE"
BuildableName = "ConnectSDKTests.xctest"
BlueprintName = "ConnectSDKTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44E98FAC1B1E84880043BC70"
BuildableName = "ConnectSDKIntegrationTests.xctest"
BlueprintName = "ConnectSDKIntegrationTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44E98FAC1B1E84880043BC70"
BuildableName = "ConnectSDKIntegrationTests.xctest"
BlueprintName = "ConnectSDKIntegrationTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44E98FAC1B1E84880043BC70"
BuildableName = "ConnectSDKIntegrationTests.xctest"
BlueprintName = "ConnectSDKIntegrationTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
<AdditionalOption
key = "NSZombieEnabled"
value = "YES"
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
101 changes: 101 additions & 0 deletions ConnectSDK.xcodeproj/xcshareddata/xcschemes/ConnectSDKTests.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0610"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44375E7E1A25265600D2F6DE"
BuildableName = "ConnectSDKTests.xctest"
BlueprintName = "ConnectSDKTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "NO"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44E98FAC1B1E84880043BC70"
BuildableName = "ConnectSDKIntegrationTests.xctest"
BlueprintName = "ConnectSDKIntegrationTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44375E7E1A25265600D2F6DE"
BuildableName = "ConnectSDKTests.xctest"
BlueprintName = "ConnectSDKTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44375E7E1A25265600D2F6DE"
BuildableName = "ConnectSDKTests.xctest"
BlueprintName = "ConnectSDKTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "44375E7E1A25265600D2F6DE"
BuildableName = "ConnectSDKTests.xctest"
BlueprintName = "ConnectSDKTests"
ReferencedContainer = "container:ConnectSDK.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can use `pod "ConnectSDK"` to get the [full version](https://github.com/Conn
* Partnerships: [email protected]

##Credits
Connect SDK for iOS makes use of the following projects, some of which are open-source.
Connect SDK for iOS makes use of the following projects, some of which are open-source:

* [SocketRocket](https://github.com/Square/SocketRocket) (Apache License, Version 2.0)
- modifications:
Expand All @@ -69,6 +69,15 @@ Connect SDK for iOS makes use of the following projects, some of which are open-
* [ASIHTTPRequest](https://github.com/pokeb/asi-http-request) (MIT)
* [xswi](https://github.com/skjolber/xswi) (MIT)

These projects are used in tests:

* [OCMock](http://ocmock.org/) (Apache License, Version 2.0)
* [OHHTTPStubs](https://github.com/AliSoftware/OHHTTPStubs/) (MIT)
* [Specta](https://github.com/specta/specta/) (MIT)
* [Expecta](https://github.com/specta/expecta/) (MIT)

This public domain image is used in tests: [The San Francisco peaks of flagstaff public domain image](http://www.public-domain-image.com/free-images/nature-landscapes/peaks/the-san-francisco-peaks-of-flagstaff).

##License
Copyright (c) 2013-2014 LG Electronics.

Expand Down
2 changes: 1 addition & 1 deletion core
Submodule core updated 93 files
+32 −0 ConnectSDKIntegrationTests/ConnectSDKIntegrationTests-Prefix.pch
+79 −0 ConnectSDKIntegrationTests/DLNAServiceIntegrationTests.m
+24 −0 ConnectSDKIntegrationTests/EXPMatchers+matchRegex.h
+42 −0 ConnectSDKIntegrationTests/EXPMatchers+matchRegex.m
+1 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Expecta
+0 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Headers
+1 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/LICENSE
+0 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Resources
+ ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Expecta
+25 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPBlockDefinedMatcher.h
+17 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPDefines.h
+45 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPExpect.h
+20 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatcher.h
+7 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beCloseTo.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beFalsy.h
+6 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beGreaterThan.h
+6 −0 ...ectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beGreaterThanOrEqualTo.h
+10 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beIdenticalTo.h
+6 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beInTheRangeOf.h
+6 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beInstanceOf.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beKindOf.h
+6 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beLessThan.h
+6 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beLessThanOrEqualTo.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beNil.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beSubclassOf.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beSupersetOf.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beTruthy.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+beginWith.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+conformTo.h
+5 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+contain.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+endWith.h
+5 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+equal.h
+10 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+haveCountOf.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+match.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+postNotification.h
+4 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+raise.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+raiseWithReason.h
+3 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers+respondTo.h
+25 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/EXPMatchers.h
+15 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/Expecta.h
+18 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/ExpectaObject.h
+73 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Headers/ExpectaSupport.h
+19 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/LICENSE
+ ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/A/Resources/Info.plist
+0 −0 ConnectSDKIntegrationTests/Frameworks/Expecta.framework/Versions/Current
+0 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Headers
+1 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/LICENSE
+0 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Resources
+1 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Specta
+17 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Headers/SPTSharedExampleGroups.h
+28 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Headers/SPTSpec.h
+14 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Headers/Specta.h
+81 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Headers/SpectaDSL.h
+5 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Headers/SpectaTypes.h
+7 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Headers/XCTestCase+Specta.h
+20 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/LICENSE
+ ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Resources/Info.plist
+ ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/A/Specta
+0 −0 ConnectSDKIntegrationTests/Frameworks/Specta.framework/Versions/Current
+24 −0 ConnectSDKIntegrationTests/Info.plist
+32 −0 ConnectSDKIntegrationTests/OCMStubRecorder+SpectaAsync.h
+31 −0 ConnectSDKIntegrationTests/OCMStubRecorder+SpectaAsync.m
+1 −0 ConnectSDKTests/Frameworks/OCMock.framework/Headers
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/License.txt
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/OCMock
+1 −0 ConnectSDKTests/Frameworks/OCMock.framework/Resources
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/NSNotificationCenter+OCMAdditions.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMArg.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMConstraint.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMLocation.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMMacroState.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMRecorder.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMStubRecorder.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMock.h
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Headers/OCMockObject.h
+ ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/OCMock
+0 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Resources/Info.plist
+ ConnectSDKTests/Frameworks/OCMock.framework/Versions/A/Resources/en.lproj/InfoPlist.strings
+1 −0 ConnectSDKTests/Frameworks/OCMock.framework/Versions/Current
+1 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Headers
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/LICENSE
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/OHHTTPStubs
+1 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Resources
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/A/Headers/OHHTTPStubs.h
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/A/Headers/OHHTTPStubsResponse+HTTPMessage.h
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/A/Headers/OHHTTPStubsResponse+JSON.h
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/A/Headers/OHHTTPStubsResponse.h
+ ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/A/OHHTTPStubs
+0 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/A/Resources/Info.plist
+1 −0 ConnectSDKTests/Frameworks/OHHTTPStubs.framework/Versions/Current
+30 −0 ConnectSDKTests/OCMArg+ArgumentCaptor.h
+32 −0 ConnectSDKTests/OCMArg+ArgumentCaptor.m
+3 −1 ConnectSDKTests/OCMStubRecorder+XCTestExpectation.h

0 comments on commit 437fd5e

Please sign in to comment.