xcfit 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (180) hide show
  1. checksums.yaml +4 -4
  2. data/.swift-version +1 -0
  3. data/.travis.yml +13 -13
  4. data/README.md +57 -35
  5. data/XCFit.podspec +6 -16
  6. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/BaseScreen.swift +14 -12
  7. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/CommonStepDefinitions.swift +16 -15
  8. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Extensions.swift +11 -11
  9. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreen.swift +5 -5
  10. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreenSteps.swift +9 -8
  11. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Hooks.swift +7 -6
  12. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___-Bridging-Header.h +7 -5
  13. data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift +10 -8
  14. data/homebrew/xcfit +155 -0
  15. data/lib/XCFit/version.rb +1 -1
  16. metadata +15 -177
  17. data/XCFit/Classes/.gitkeep +0 -0
  18. data/XCFit/Classes/CliSwift.swift +0 -87
  19. data/XCFit/Classes/CopyDir.swift +0 -26
  20. data/XCFit/Classes/Cucumberish/Core/CCIBlockDefinitions.h +0 -400
  21. data/XCFit/Classes/Cucumberish/Core/Managers/CCIFeaturesManager.h +0 -72
  22. data/XCFit/Classes/Cucumberish/Core/Managers/CCIFeaturesManager.m +0 -141
  23. data/XCFit/Classes/Cucumberish/Core/Managers/CCIStepsManager.h +0 -51
  24. data/XCFit/Classes/Cucumberish/Core/Managers/CCIStepsManager.m +0 -245
  25. data/XCFit/Classes/Cucumberish/Core/Models/CCIArgument.h +0 -62
  26. data/XCFit/Classes/Cucumberish/Core/Models/CCIArgument.m +0 -117
  27. data/XCFit/Classes/Cucumberish/Core/Models/CCIAroundHock.h +0 -37
  28. data/XCFit/Classes/Cucumberish/Core/Models/CCIAroundHock.m +0 -37
  29. data/XCFit/Classes/Cucumberish/Core/Models/CCIBackground.h +0 -46
  30. data/XCFit/Classes/Cucumberish/Core/Models/CCIBackground.m +0 -117
  31. data/XCFit/Classes/Cucumberish/Core/Models/CCIExample.h +0 -89
  32. data/XCFit/Classes/Cucumberish/Core/Models/CCIExample.m +0 -128
  33. data/XCFit/Classes/Cucumberish/Core/Models/CCIFeature.h +0 -49
  34. data/XCFit/Classes/Cucumberish/Core/Models/CCIFeature.m +0 -174
  35. data/XCFit/Classes/Cucumberish/Core/Models/CCIHock.h +0 -36
  36. data/XCFit/Classes/Cucumberish/Core/Models/CCIHock.m +0 -34
  37. data/XCFit/Classes/Cucumberish/Core/Models/CCILocation.h +0 -61
  38. data/XCFit/Classes/Cucumberish/Core/Models/CCILocation.m +0 -91
  39. data/XCFit/Classes/Cucumberish/Core/Models/CCIScenarioDefinition.h +0 -97
  40. data/XCFit/Classes/Cucumberish/Core/Models/CCIScenarioDefinition.m +0 -224
  41. data/XCFit/Classes/Cucumberish/Core/Models/CCIStep.h +0 -85
  42. data/XCFit/Classes/Cucumberish/Core/Models/CCIStep.m +0 -98
  43. data/XCFit/Classes/Cucumberish/Core/Models/CCIStepDefinition.h +0 -43
  44. data/XCFit/Classes/Cucumberish/Core/Models/CCIStepDefinition.m +0 -65
  45. data/XCFit/Classes/Cucumberish/Cucumberish.h +0 -133
  46. data/XCFit/Classes/Cucumberish/Cucumberish.m +0 -604
  47. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstBuilder.h +0 -15
  48. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstBuilder.m +0 -312
  49. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstNode.h +0 -20
  50. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstNode.m +0 -79
  51. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHBackground.h +0 -12
  52. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHBackground.m +0 -18
  53. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHComment.h +0 -11
  54. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHComment.m +0 -27
  55. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDataTable.h +0 -14
  56. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDataTable.m +0 -30
  57. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDocString.h +0 -14
  58. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDocString.m +0 -29
  59. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHExamples.h +0 -24
  60. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHExamples.m +0 -49
  61. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHFeature.h +0 -24
  62. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHFeature.m +0 -50
  63. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialect.h +0 -25
  64. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialect.m +0 -64
  65. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialectProvider.h +0 -9
  66. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialectProvider.m +0 -124
  67. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialectProviderProtocol.h +0 -10
  68. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageConstants.h +0 -9
  69. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageConstants.m +0 -10
  70. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageSetting.h +0 -17
  71. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageSetting.m +0 -18
  72. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLine.h +0 -12
  73. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLine.m +0 -179
  74. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLineProtocol.h +0 -64
  75. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLineSpan.h +0 -9
  76. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLineSpan.m +0 -26
  77. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasDescriptionProtocol.h +0 -8
  78. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasLocationProtocol.h +0 -8
  79. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasRowsProtocol.h +0 -8
  80. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasStepsProtocol.h +0 -8
  81. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasTagsProtocol.h +0 -8
  82. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHLocation.h +0 -12
  83. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHLocation.m +0 -41
  84. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHNode.h +0 -4
  85. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHNode.m +0 -5
  86. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.h +0 -10
  87. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m +0 -18
  88. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser.h +0 -132
  89. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser.m +0 -2735
  90. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParserException.h +0 -55
  91. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParserException.m +0 -192
  92. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenario.h +0 -14
  93. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenario.m +0 -18
  94. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioDefinition.h +0 -23
  95. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioDefinition.m +0 -41
  96. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioDefinition_Private.h +0 -6
  97. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioOutline.h +0 -15
  98. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioOutline.m +0 -26
  99. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStep.h +0 -16
  100. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStep.m +0 -35
  101. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStepArgument.h +0 -4
  102. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStepArgument.m +0 -5
  103. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableCell.h +0 -13
  104. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableCell.m +0 -28
  105. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableRow.h +0 -13
  106. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableRow.m +0 -29
  107. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTag.h +0 -13
  108. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTag.m +0 -28
  109. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHToken.h +0 -26
  110. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHToken.m +0 -50
  111. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenMatcher.h +0 -29
  112. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenMatcher.m +0 -283
  113. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenScanner.h +0 -12
  114. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenScanner.m +0 -59
  115. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/NSString+Trim.h +0 -7
  116. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/NSString+Trim.m +0 -28
  117. data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/gherkin-languages.json +0 -2969
  118. data/XCFit/Classes/Cucumberish/Utils/NSArray+Hashes.h +0 -24
  119. data/XCFit/Classes/Cucumberish/Utils/NSArray+Hashes.m +0 -44
  120. data/XCFit/Classes/Cucumberish/Utils/NSObject+Dictionary.h +0 -7
  121. data/XCFit/Classes/Cucumberish/Utils/NSObject+Dictionary.m +0 -83
  122. data/XCFit/Classes/Cucumberish/Utils/NSString+Formatter.h +0 -32
  123. data/XCFit/Classes/Cucumberish/Utils/NSString+Formatter.m +0 -70
  124. data/XCFit_Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateIcon.icns +0 -0
  125. data/XCFit_Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -40
  126. data/XCFit_Templates/XCFit/Mac Acceptance Tests.xctemplate/Empty.xib +0 -12
  127. data/XCFit_Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateIcon.icns +0 -0
  128. data/XCFit_Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateInfo.plist +0 -61
  129. data/XCFit_Templates/XCFit/MacOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist +0 -39
  130. data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/TemplateIcon.icns +0 -0
  131. data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -134
  132. data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/___PACKAGENAMEASIDENTIFIER___.m +0 -17
  133. data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift +0 -13
  134. data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/___POD_NAME___.m +0 -25
  135. data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/AcceptanceTests-Bridging-Header.h +0 -1
  136. data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift +0 -35
  137. data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/SlimTables.h +0 -28
  138. data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/TemplateInfo.plist +0 -155
  139. data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/___PACKAGENAMEASIDENTIFIER___-Bridging-Header.h +0 -12
  140. data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/___PACKAGENAMEASIDENTIFIER___.m +0 -33
  141. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/BaseScreen.swift +0 -41
  142. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/CommonStepDefinitions.swift +0 -92
  143. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Extensions.swift +0 -58
  144. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreen.swift +0 -24
  145. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreenSteps.swift +0 -28
  146. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Hooks.swift +0 -26
  147. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/TemplateIcon.png +0 -0
  148. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/TemplateIcon@2x.png +0 -0
  149. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/TemplateInfo.plist +0 -159
  150. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___-Bridging-Header.h +0 -15
  151. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.h +0 -23
  152. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.m +0 -28
  153. data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift +0 -37
  154. data/Xcode7-Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateIcon.icns +0 -0
  155. data/Xcode7-Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -40
  156. data/Xcode7-Templates/XCFit/Mac Acceptance Tests.xctemplate/Empty.xib +0 -12
  157. data/Xcode7-Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateIcon.icns +0 -0
  158. data/Xcode7-Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateInfo.plist +0 -61
  159. data/Xcode7-Templates/XCFit/MacOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist +0 -39
  160. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/BaseScreen.swift +0 -42
  161. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/Extensions.swift +0 -60
  162. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeElements.swift +0 -31
  163. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeProtocol.swift +0 -25
  164. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeScreen.swift +0 -24
  165. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeScreenTest.swift +0 -30
  166. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/ProtocolOrientedTest.swift +0 -45
  167. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/TemplateIcon.png +0 -0
  168. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/TemplateIcon@2x.png +0 -0
  169. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/TemplateInfo.plist +0 -141
  170. data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___TestBase.swift +0 -30
  171. data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateIcon-old.icns +0 -0
  172. data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateIcon.png +0 -0
  173. data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateIcon@2x.png +0 -0
  174. data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -40
  175. data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateIcon-old.icns +0 -0
  176. data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateIcon.png +0 -0
  177. data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateIcon@2x.png +0 -0
  178. data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateInfo.plist +0 -59
  179. data/Xcode7-Templates/XCFit/iOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist +0 -39
  180. data/Xcode7-Templates/XCFit/iOS XCUI POM Test Bundle.xctemplate/TemplateInfo.plist +0 -39
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9531" systemVersion="15C50" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
3
- <dependencies>
4
- <deployment identifier="macosx"/>
5
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9531"/>
6
- </dependencies>
7
- <objects>
8
- <customObject id="-2" userLabel="File's Owner" customClass="NSApplication"/>
9
- <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
10
- <customObject id="-3" userLabel="Application" customClass="NSObject"/>
11
- </objects>
12
- </document>
@@ -1,61 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>Macros</key>
6
- <dict>
7
- <key>POD_PLATFORM_IDENTIFIER</key>
8
- <string>osx</string>
9
- </dict>
10
- <key>Name</key>
11
- <string>Acceptance Tests</string>
12
- <key>Kind</key>
13
- <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
14
- <key>Identifier</key>
15
- <string>io.cleankit.macAcceptanceTests</string>
16
- <key>Description</key>
17
- <string>This target builds an OS X Application for Acceptance Testing your App using the Fitnesse framework. Requires a project that uses CocoaPods.</string>
18
- <key>Ancestors</key>
19
- <array>
20
- <string>io.cleankit.baseAcceptanceTests</string>
21
- <string>com.apple.dt.unit.osxBase</string>
22
- </array>
23
- <key>Concrete</key>
24
- <true/>
25
- <key>Targets</key>
26
- <array>
27
- <dict>
28
- <key>SharedSettings</key>
29
- <dict>
30
- <key>LD_RUNPATH_SEARCH_PATHS</key>
31
- <string>$(inherited) @executable_path/../Frameworks</string>
32
- </dict>
33
- </dict>
34
- </array>
35
- <key>Nodes</key>
36
- <array>
37
- <string>Info.plist:MainNib</string>
38
- <string>Info.plist:PrincipalClass</string>
39
- <string>Empty.xib</string>
40
- </array>
41
- <key>Definitions</key>
42
- <dict>
43
- <key>Info.plist:MainNib</key>
44
- <string>&lt;key&gt;NSMainNibFile&lt;/key&gt;
45
- &lt;string&gt;Empty&lt;/string&gt;
46
- </string>
47
- <key>Info.plist:PrincipalClass</key>
48
- <string>&lt;key&gt;NSPrincipalClass&lt;/key&gt;
49
- &lt;string&gt;OCSlimNSApplicationRunner&lt;/string&gt;</string>
50
- <key>Empty.xib</key>
51
- <dict>
52
- <key>Group</key>
53
- <string>Supporting Files</string>
54
- <key>Path</key>
55
- <string>Empty.xib</string>
56
- <key>SortOrder</key>
57
- <integer>101</integer>
58
- </dict>
59
- </dict>
60
- </dict>
61
- </plist>
@@ -1,39 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>Kind</key>
6
- <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
7
- <key>Identifier</key>
8
- <string>com.apple.dt.unit.macOSUICucumberishTestingBundle</string>
9
- <key>Ancestors</key>
10
- <array>
11
- <string>com.apple.dt.unit.cucumberishUITestBundleBase</string>
12
- <string>com.apple.dt.unit.osxBase</string>
13
- </array>
14
- <key>Concrete</key>
15
- <true/>
16
- <key>Description</key>
17
- <string>This target builds a BDD style user interface testing bundle that uses the Cucumberish and XCTest framework.</string>
18
- <key>SortOrder</key>
19
- <integer>1</integer>
20
- <key>Targets</key>
21
- <array>
22
- <dict>
23
- <key>TargetIdentifier</key>
24
- <string>com.apple.dt.cocoaUITestBundleTarget</string>
25
- </dict>
26
- </array>
27
- <key>OptionConstraints</key>
28
- <array>
29
- <dict>
30
- <key>Identifier</key>
31
- <string>productName</string>
32
- <key>ConstraintType</key>
33
- <string>DefaultIfAssociatedTarget</string>
34
- <key>Value</key>
35
- <string>___ASSOCIATEDTARGET_bundleName___UITests</string>
36
- </dict>
37
- </array>
38
- </dict>
39
- </plist>
@@ -1,42 +0,0 @@
1
- //
2
- //
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
-
7
- /*
8
-
9
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
10
-
11
- This assumes that your apps is made up of multiple screens. All the common varibales, functions, related to screens can be put here. This class will be perent class of your individual screen.
12
-
13
- */
14
-
15
-
16
- import XCTest
17
- import Foundation
18
-
19
- class BaseScreen: ___PACKAGENAMEASIDENTIFIER___TestBase {
20
-
21
- func waitAndTap(element: XCUIElement) {
22
-
23
- let exists = NSPredicate(format: "exists == true")
24
-
25
- expectationForPredicate(exists, evaluatedWithObject: element, handler: nil)
26
- waitForExpectationsWithTimeout(10, handler: nil)
27
-
28
-
29
- element.tap()
30
-
31
- }
32
-
33
-
34
- func waitForExist(element: XCUIElement) {
35
-
36
- let exists = NSPredicate(format: "exists == true")
37
- expectationForPredicate(exists, evaluatedWithObject: element, handler: nil)
38
- waitForExpectationsWithTimeout(10, handler: nil)
39
- XCTAssert(element.exists)
40
-
41
- }
42
- }
@@ -1,60 +0,0 @@
1
- //
2
- //
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
- //
7
-
8
- /*
9
-
10
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
11
-
12
- This file can take all the Swift extensions build around XCUI Test Frameworks which can be directly used in the tests, page objects. Here are sample extensions on XCUIElement and XCTestCase.
13
-
14
- */
15
-
16
-
17
-
18
- import Foundation
19
- import XCTest
20
-
21
- extension XCUIElement {
22
-
23
- public func tapOnceVisible(testCase: XCTestCase,
24
- file: String = #file, line: UInt = #line) {
25
- let existsPredicate = NSPredicate(format: "exists == true")
26
-
27
-
28
- testCase.expectationForPredicate(existsPredicate,
29
- evaluatedWithObject: self, handler: nil)
30
-
31
- testCase.waitForExpectationsWithTimeout(20) { (error) -> Void in
32
- if (error != nil) {
33
- let message = "Failed to find \(self) after 20 seconds."
34
- testCase.recordFailureWithDescription(message,
35
- inFile: file, atLine: line, expected: true)
36
- }
37
- }
38
-
39
- self.tap()
40
- }
41
-
42
-
43
- }
44
-
45
- extension XCTestCase {
46
- func waitForElementToAppear(element: XCUIElement,
47
- file: String = #file, line: UInt = #line) {
48
- let existsPredicate = NSPredicate(format: "exists == true")
49
- expectationForPredicate(existsPredicate,
50
- evaluatedWithObject: element, handler: nil)
51
-
52
- waitForExpectationsWithTimeout(20) { (error) -> Void in
53
- if (error != nil) {
54
- let message = "Failed to find \(element) after 5 seconds."
55
- self.recordFailureWithDescription(message,
56
- inFile: file, atLine: line, expected: true)
57
- }
58
- }
59
- }
60
- }
@@ -1,31 +0,0 @@
1
- //
2
- //
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
- //
7
-
8
-
9
- /*
10
-
11
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
12
-
13
- Sectons are defined to store locators of the screen in the form of enums. Here are some samples we can store Images, Buttons and Static Texts of the HomeScreens. We can access those enums from anywhere from the Test methods or page objects.
14
-
15
- */
16
-
17
- import Foundation
18
- import XCTest
19
-
20
- public enum Images: String {
21
- case bannerImage = "Banner"
22
- }
23
-
24
- public enum Buttons: String {
25
- case homeButton = "Home"
26
- }
27
-
28
-
29
- public enum StaticTextx: String {
30
- case homeLink = "homelink"
31
- }
@@ -1,25 +0,0 @@
1
- //
2
- // HomeProtocol.swift
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
- //
7
-
8
- /*
9
-
10
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
11
-
12
- Swift is protocol oriented language so feel to start with Protocol per scren. Here is example of sample protocol for the homescreen. We can implement this protocol in the XCTest method as needed or we can write some extensions to support Testing.
13
-
14
- */
15
-
16
- import Foundation
17
- import XCTest
18
-
19
- protocol HomeProtocol {
20
-
21
- func launchApp()
22
- func tapHomebutton()
23
-
24
-
25
- }
@@ -1,24 +0,0 @@
1
- //
2
- //
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
-
7
- /*
8
-
9
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
10
-
11
- This assumes that your apps is made up of multiple screens. You can write individual screen class which extend BaseScreen. All the functionality related to screen can be included in this class.
12
- */
13
-
14
- import Foundation
15
- import XCTest
16
-
17
-
18
- class HomeScreen: BaseScreen {
19
-
20
- // You can add locators and functions of homeScreen here
21
-
22
- let crappyButtuon = XCUIApplication().buttons["I am really useless button"]
23
-
24
- }
@@ -1,30 +0,0 @@
1
- //
2
- //
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
- //
7
-
8
- /*
9
-
10
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
11
-
12
- This is sample test which demonstrate use of Page Objects and common extensions. We can access any page or section from test method
13
-
14
- */
15
-
16
- import Foundation
17
- import XCTest
18
-
19
- class HomeScreenTest: HomeScreen {
20
-
21
- func testHomeScreen() {
22
-
23
- //HomeScreen().crappyButtuon.tapOnceVisible(testCase: self)
24
- XCTAssertFalse(HomeScreen().crappyButtuon.exists)
25
-
26
- }
27
-
28
-
29
-
30
- }
@@ -1,45 +0,0 @@
1
- //
2
- //
3
- // Created by XCFit Framework
4
- // Copyright © 2016 XCFit Framework. All rights reserved.
5
- //
6
- //
7
-
8
- /*
9
-
10
- This is sample code created by XCFit Framework and can be edited/Removed as per your project need. You can also re-arrange Xcode Groups and directories as per your need.
11
-
12
- Here is example of the Protocol Oriented Test which implement HomeProtocol.
13
-
14
- */
15
-
16
-
17
- import Foundation
18
- import XCTest
19
-
20
- extension HomeProtocol {
21
-
22
-
23
-
24
- }
25
-
26
- class ProtocolOrientedTest: XCTestCase, HomeProtocol {
27
-
28
- let app = XCUIApplication()
29
-
30
- func testPrintsAddedToBasket() {
31
- XCUIApplication().launch()
32
- launchApp()
33
- tapHomebutton()
34
-
35
- }
36
-
37
- func launchApp() {
38
-
39
- }
40
-
41
- func tapHomebutton() {
42
-
43
- }
44
-
45
- }
@@ -1,141 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>Kind</key>
6
- <string>Xcode.Xcode3.ProjectTemplateUnitKind</string>
7
- <key>Identifier</key>
8
- <string>com.apple.dt.unit.xcuiPomTestBundleBase</string>
9
- <key>Ancestors</key>
10
- <array>
11
- <string>com.apple.dt.unit.uiTestBundleBase</string>
12
- </array>
13
- <key>TargetOnly</key>
14
- <true/>
15
- <key>AssociatedTargetSpecification</key>
16
- <dict>
17
- <key>PopUpTitle</key>
18
- <string>Target to be Tested:</string>
19
- <key>PopUpDescription</key>
20
- <string>The application that this new test bundle will be testing. The new UI Tests will be associated with that target&apos;s scheme.</string>
21
- <key>AllowableProductTypes</key>
22
- <array>
23
- <string>com.apple.product-type.application</string>
24
- </array>
25
- <key>AssociatedTargetIsTargetToBeTested</key>
26
- <true/>
27
- </dict>
28
- <key>Targets</key>
29
- <array>
30
- <dict>
31
- <key>ProductType</key>
32
- <string>com.apple.product-type.bundle.ui-testing</string>
33
- <key>SharedSettings</key>
34
- <dict>
35
- <key>LD_RUNPATH_SEARCH_PATHS</key>
36
- <string>$(inherited) @executable_path/Frameworks @loader_path/Frameworks</string>
37
- </dict>
38
- <key>Configurations</key>
39
- <dict>
40
- <key>Debug</key>
41
- <dict>
42
- <key>SRC_ROOT</key>
43
- <string>@\&quot;$(SRCROOT)\&quot;</string>
44
- </dict>
45
- <key>Release</key>
46
- <dict/>
47
- </dict>
48
- <key>BuildPhases</key>
49
- <array>
50
- <dict>
51
- <key>Class</key>
52
- <string>Sources</string>
53
- </dict>
54
- <dict>
55
- <key>Class</key>
56
- <string>Frameworks</string>
57
- </dict>
58
- <dict>
59
- <key>Class</key>
60
- <string>Resources</string>
61
- </dict>
62
- </array>
63
- </dict>
64
- </array>
65
- <key>Nodes</key>
66
- <array>
67
- <string>HomeElements.swift</string>
68
- <string>HomeScreenTest.swift</string>
69
- <string>ProtocolOrientedTest.swift</string>
70
- <string>HomeProtocol.swift</string>
71
- <string>Extensions.swift</string>
72
- <string>HomeScreen.swift</string>
73
- <string>BaseScreen.swift</string>
74
- <string>Info.plist:PackageType</string>
75
- <string>___PACKAGENAMEASIDENTIFIER___TestBase.swift</string>
76
- </array>
77
- <key>Definitions</key>
78
- <dict>
79
- <key>HomeElements.swift</key>
80
- <dict>
81
- <key>Path</key>
82
- <string>HomeElements.swift</string>
83
- <key>Group</key>
84
- <string>Sections</string>
85
- </dict>
86
- <key>HomeScreenTest.swift</key>
87
- <dict>
88
- <key>Path</key>
89
- <string>HomeScreenTest.swift</string>
90
- <key>Group</key>
91
- <string>Tests</string>
92
- </dict>
93
- <key>ProtocolOrientedTest.swift</key>
94
- <dict>
95
- <key>Path</key>
96
- <string>ProtocolOrientedTest.swift</string>
97
- <key>Group</key>
98
- <string>Tests</string>
99
- </dict>
100
- <key>HomeProtocol.swift</key>
101
- <dict>
102
- <key>Path</key>
103
- <string>HomeProtocol.swift</string>
104
- <key>Group</key>
105
- <string>Protocols</string>
106
- </dict>
107
- <key>Extensions.swift</key>
108
- <dict>
109
- <key>Path</key>
110
- <string>Extensions.swift</string>
111
- <key>Group</key>
112
- <string>Protocols</string>
113
- </dict>
114
- <key>HomeScreen.swift</key>
115
- <dict>
116
- <key>Path</key>
117
- <string>HomeScreen.swift</string>
118
- <key>Group</key>
119
- <string>Screens</string>
120
- </dict>
121
- <key>BaseScreen.swift</key>
122
- <dict>
123
- <key>Path</key>
124
- <string>BaseScreen.swift</string>
125
- <key>Group</key>
126
- <string>TestBase</string>
127
- </dict>
128
- <key>Info.plist:PackageType</key>
129
- <string>&lt;key&gt;CFBundlePackageType&lt;/key&gt;
130
- &lt;string&gt;BNDL&lt;/string&gt;
131
- </string>
132
- <key>___PACKAGENAMEASIDENTIFIER___TestBase.swift</key>
133
- <dict>
134
- <key>Path</key>
135
- <string>___PACKAGENAMEASIDENTIFIER___TestBase.swift</string>
136
- <key>Group</key>
137
- <string>TestBase</string>
138
- </dict>
139
- </dict>
140
- </dict>
141
- </plist>