xcfit 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.swift-version +1 -0
- data/.travis.yml +13 -13
- data/README.md +57 -35
- data/XCFit.podspec +6 -16
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/BaseScreen.swift +14 -12
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/CommonStepDefinitions.swift +16 -15
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Extensions.swift +11 -11
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreen.swift +5 -5
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreenSteps.swift +9 -8
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Hooks.swift +7 -6
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___-Bridging-Header.h +7 -5
- data/XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift +10 -8
- data/homebrew/xcfit +155 -0
- data/lib/XCFit/version.rb +1 -1
- metadata +15 -177
- data/XCFit/Classes/.gitkeep +0 -0
- data/XCFit/Classes/CliSwift.swift +0 -87
- data/XCFit/Classes/CopyDir.swift +0 -26
- data/XCFit/Classes/Cucumberish/Core/CCIBlockDefinitions.h +0 -400
- data/XCFit/Classes/Cucumberish/Core/Managers/CCIFeaturesManager.h +0 -72
- data/XCFit/Classes/Cucumberish/Core/Managers/CCIFeaturesManager.m +0 -141
- data/XCFit/Classes/Cucumberish/Core/Managers/CCIStepsManager.h +0 -51
- data/XCFit/Classes/Cucumberish/Core/Managers/CCIStepsManager.m +0 -245
- data/XCFit/Classes/Cucumberish/Core/Models/CCIArgument.h +0 -62
- data/XCFit/Classes/Cucumberish/Core/Models/CCIArgument.m +0 -117
- data/XCFit/Classes/Cucumberish/Core/Models/CCIAroundHock.h +0 -37
- data/XCFit/Classes/Cucumberish/Core/Models/CCIAroundHock.m +0 -37
- data/XCFit/Classes/Cucumberish/Core/Models/CCIBackground.h +0 -46
- data/XCFit/Classes/Cucumberish/Core/Models/CCIBackground.m +0 -117
- data/XCFit/Classes/Cucumberish/Core/Models/CCIExample.h +0 -89
- data/XCFit/Classes/Cucumberish/Core/Models/CCIExample.m +0 -128
- data/XCFit/Classes/Cucumberish/Core/Models/CCIFeature.h +0 -49
- data/XCFit/Classes/Cucumberish/Core/Models/CCIFeature.m +0 -174
- data/XCFit/Classes/Cucumberish/Core/Models/CCIHock.h +0 -36
- data/XCFit/Classes/Cucumberish/Core/Models/CCIHock.m +0 -34
- data/XCFit/Classes/Cucumberish/Core/Models/CCILocation.h +0 -61
- data/XCFit/Classes/Cucumberish/Core/Models/CCILocation.m +0 -91
- data/XCFit/Classes/Cucumberish/Core/Models/CCIScenarioDefinition.h +0 -97
- data/XCFit/Classes/Cucumberish/Core/Models/CCIScenarioDefinition.m +0 -224
- data/XCFit/Classes/Cucumberish/Core/Models/CCIStep.h +0 -85
- data/XCFit/Classes/Cucumberish/Core/Models/CCIStep.m +0 -98
- data/XCFit/Classes/Cucumberish/Core/Models/CCIStepDefinition.h +0 -43
- data/XCFit/Classes/Cucumberish/Core/Models/CCIStepDefinition.m +0 -65
- data/XCFit/Classes/Cucumberish/Cucumberish.h +0 -133
- data/XCFit/Classes/Cucumberish/Cucumberish.m +0 -604
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstBuilder.h +0 -15
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstBuilder.m +0 -312
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstNode.h +0 -20
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHAstNode.m +0 -79
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHBackground.h +0 -12
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHBackground.m +0 -18
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHComment.h +0 -11
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHComment.m +0 -27
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDataTable.h +0 -14
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDataTable.m +0 -30
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDocString.h +0 -14
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHDocString.m +0 -29
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHExamples.h +0 -24
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHExamples.m +0 -49
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHFeature.h +0 -24
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHFeature.m +0 -50
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialect.h +0 -25
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialect.m +0 -64
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialectProvider.h +0 -9
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialectProvider.m +0 -124
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinDialectProviderProtocol.h +0 -10
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageConstants.h +0 -9
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageConstants.m +0 -10
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageSetting.h +0 -17
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLanguageSetting.m +0 -18
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLine.h +0 -12
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLine.m +0 -179
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLineProtocol.h +0 -64
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLineSpan.h +0 -9
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHGherkinLineSpan.m +0 -26
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasDescriptionProtocol.h +0 -8
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasLocationProtocol.h +0 -8
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasRowsProtocol.h +0 -8
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasStepsProtocol.h +0 -8
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHHasTagsProtocol.h +0 -8
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHLocation.h +0 -12
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHLocation.m +0 -41
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHNode.h +0 -4
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHNode.m +0 -5
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.h +0 -10
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser+Extensions.m +0 -18
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser.h +0 -132
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParser.m +0 -2735
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParserException.h +0 -55
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHParserException.m +0 -192
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenario.h +0 -14
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenario.m +0 -18
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioDefinition.h +0 -23
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioDefinition.m +0 -41
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioDefinition_Private.h +0 -6
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioOutline.h +0 -15
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHScenarioOutline.m +0 -26
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStep.h +0 -16
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStep.m +0 -35
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStepArgument.h +0 -4
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHStepArgument.m +0 -5
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableCell.h +0 -13
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableCell.m +0 -28
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableRow.h +0 -13
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTableRow.m +0 -29
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTag.h +0 -13
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTag.m +0 -28
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHToken.h +0 -26
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHToken.m +0 -50
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenMatcher.h +0 -29
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenMatcher.m +0 -283
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenScanner.h +0 -12
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/GHTokenScanner.m +0 -59
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/NSString+Trim.h +0 -7
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/NSString+Trim.m +0 -28
- data/XCFit/Classes/Cucumberish/Dependencies/Gherkin/gherkin-languages.json +0 -2969
- data/XCFit/Classes/Cucumberish/Utils/NSArray+Hashes.h +0 -24
- data/XCFit/Classes/Cucumberish/Utils/NSArray+Hashes.m +0 -44
- data/XCFit/Classes/Cucumberish/Utils/NSObject+Dictionary.h +0 -7
- data/XCFit/Classes/Cucumberish/Utils/NSObject+Dictionary.m +0 -83
- data/XCFit/Classes/Cucumberish/Utils/NSString+Formatter.h +0 -32
- data/XCFit/Classes/Cucumberish/Utils/NSString+Formatter.m +0 -70
- data/XCFit_Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateIcon.icns +0 -0
- data/XCFit_Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -40
- data/XCFit_Templates/XCFit/Mac Acceptance Tests.xctemplate/Empty.xib +0 -12
- data/XCFit_Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateIcon.icns +0 -0
- data/XCFit_Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateInfo.plist +0 -61
- data/XCFit_Templates/XCFit/MacOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist +0 -39
- data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/TemplateIcon.icns +0 -0
- data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -134
- data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/___PACKAGENAMEASIDENTIFIER___.m +0 -17
- data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift +0 -13
- data/Xcode7-Templates/XCFit/Base Acceptance Testing Bundle.xctemplate/___POD_NAME___.m +0 -25
- data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/AcceptanceTests-Bridging-Header.h +0 -1
- data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/FixtureExample.swift +0 -35
- data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/SlimTables.h +0 -28
- data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/TemplateInfo.plist +0 -155
- data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/___PACKAGENAMEASIDENTIFIER___-Bridging-Header.h +0 -12
- data/Xcode7-Templates/XCFit/Base Acceptance Tests.xctemplate/___PACKAGENAMEASIDENTIFIER___.m +0 -33
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/BaseScreen.swift +0 -41
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/CommonStepDefinitions.swift +0 -92
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Extensions.swift +0 -58
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreen.swift +0 -24
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/HomeScreenSteps.swift +0 -28
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/Hooks.swift +0 -26
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/TemplateIcon.png +0 -0
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/TemplateIcon@2x.png +0 -0
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/TemplateInfo.plist +0 -159
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___-Bridging-Header.h +0 -15
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.h +0 -23
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.m +0 -28
- data/Xcode7-Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift +0 -37
- data/Xcode7-Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateIcon.icns +0 -0
- data/Xcode7-Templates/XCFit/Mac Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -40
- data/Xcode7-Templates/XCFit/Mac Acceptance Tests.xctemplate/Empty.xib +0 -12
- data/Xcode7-Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateIcon.icns +0 -0
- data/Xcode7-Templates/XCFit/Mac Acceptance Tests.xctemplate/TemplateInfo.plist +0 -61
- data/Xcode7-Templates/XCFit/MacOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist +0 -39
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/BaseScreen.swift +0 -42
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/Extensions.swift +0 -60
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeElements.swift +0 -31
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeProtocol.swift +0 -25
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeScreen.swift +0 -24
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeScreenTest.swift +0 -30
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/ProtocolOrientedTest.swift +0 -45
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/TemplateIcon.png +0 -0
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/TemplateIcon@2x.png +0 -0
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/TemplateInfo.plist +0 -141
- data/Xcode7-Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___TestBase.swift +0 -30
- data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateIcon-old.icns +0 -0
- data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateIcon.png +0 -0
- data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateIcon@2x.png +0 -0
- data/Xcode7-Templates/XCFit/iOS Acceptance Testing Bundle.xctemplate/TemplateInfo.plist +0 -40
- data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateIcon-old.icns +0 -0
- data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateIcon.png +0 -0
- data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateIcon@2x.png +0 -0
- data/Xcode7-Templates/XCFit/iOS Acceptance Tests.xctemplate/TemplateInfo.plist +0 -59
- data/Xcode7-Templates/XCFit/iOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist +0 -39
- 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>
|
Binary file
|
@@ -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><key>NSMainNibFile</key>
|
45
|
-
<string>Empty</string>
|
46
|
-
</string>
|
47
|
-
<key>Info.plist:PrincipalClass</key>
|
48
|
-
<string><key>NSPrincipalClass</key>
|
49
|
-
<string>OCSlimNSApplicationRunner</string></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>
|
data/Xcode7-Templates/XCFit/MacOS UI Cucumberish Testing Bundle.xctemplate/TemplateInfo.plist
DELETED
@@ -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
|
-
}
|
Binary file
|
Binary file
|
@@ -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'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>@\"$(SRCROOT)\"</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><key>CFBundlePackageType</key>
|
130
|
-
<string>BNDL</string>
|
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>
|