xcfit 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3b5869a1228921ec1216c8b5147b5ec4f177f4f
4
- data.tar.gz: 9572d36318fd75b4137b956563aa3c547a94a4ff
3
+ metadata.gz: 1fda9b93267e254b9436b9a4e673ebaaaefb58e7
4
+ data.tar.gz: ff693fcc8b634bf9318c4699b420f5ea753deb2d
5
5
  SHA512:
6
- metadata.gz: a04a891b9a2a6dff494a9e143d29790bac8c276df2493d4c1a2c7291b45c5467855734b5e52605799d3911771240f31ba1d54db352345a29459ee3427e3b4e53
7
- data.tar.gz: 716bb334cfc5949057454456c725d51dcead7cbcb5e49ba78f1b18da2f385777576e4d2c7d93e9438db89e09857a01a1cbec0d01938de23a3a80bd45bf194821
6
+ metadata.gz: 497beb0a4cf0b2a44cbc348b0bb241ad1674077974e85bfde14e579ad125b172aac9d1c3012d683d2868925b3ad70046927e4db93ed569e6eb630b11d76ee505
7
+ data.tar.gz: 99f035fbf2107cf34be0d28334fabec22c21704fbf0aaf4d9fc9e4fd6598f0370387dc5df90c8510bade1879cbbbad308108c2e46dabaad4a6fa52c300b172cf
data/XCFit.podspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'XCFit'
3
- s.version = '4.0.3'
3
+ s.version = '4.0.4'
4
4
  s.summary = 'Full Stack BDD for iOS and macOS Apps with Swift, Xcode using XCUITest, Cucumberish, FitNesse and friends.'
5
5
 
6
6
  s.description = <<-DESC
@@ -0,0 +1,39 @@
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.protocolBDDBundle</string>
9
+ <key>Ancestors</key>
10
+ <array>
11
+ <string>com.apple.dt.unit.protocolBDDBundleBase</string>
12
+ <string>com.apple.dt.unit.iosBase</string>
13
+ </array>
14
+ <key>Concrete</key>
15
+ <true/>
16
+ <key>Description</key>
17
+ <string>This target builds a XCUI tests with Protocol Oriented BDD using 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___ProtocolBDDTests</string>
36
+ </dict>
37
+ </array>
38
+ </dict>
39
+ </plist>
@@ -0,0 +1,24 @@
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 stores all the XCUIElements for the perticular screen or feature so that our steps become readable.
13
+
14
+ */
15
+
16
+
17
+ import Foundation
18
+ import XCTest
19
+
20
+ enum FeatureElements {
21
+
22
+ // static let welcomeButton = XCUIApplication().buttons["hello"]
23
+
24
+ }
@@ -0,0 +1,31 @@
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 extension to Feature protocol to implement the steps in the given when then format.
13
+
14
+ */
15
+
16
+ import Foundation
17
+ import XCTest
18
+ //import XCFit
19
+
20
+ // Once XCFit is imported we can use predefined steps
21
+
22
+ extension Feature {
23
+
24
+ func givenTheAppIsRunning() {
25
+
26
+ XCUIApplication().launch()
27
+
28
+ }
29
+
30
+ }
31
+
@@ -0,0 +1,20 @@
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 file is a protocol with all the requirements for the specific feature.
12
+ */
13
+
14
+ import Foundation
15
+ import XCTest
16
+
17
+
18
+ protocol Feature {
19
+ func testAppIsRunning()
20
+ }
@@ -0,0 +1,109 @@
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.protocolBDDBundleBase</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>Feature+Protocol.swift</string>
68
+ <string>Feature+Extension.swift</string>
69
+ <string>Feature+Enum.swift</string>
70
+ <string>Info.plist:PackageType</string>
71
+ <string>___PACKAGENAMEASIDENTIFIER___Tests.swift</string>
72
+ </array>
73
+ <key>Definitions</key>
74
+ <dict>
75
+ <key>Feature+Protocol.swift</key>
76
+ <dict>
77
+ <key>Path</key>
78
+ <string>Feature+Protocol.swift</string>
79
+ <key>Group</key>
80
+ <string>Features</string>
81
+ </dict>
82
+ <key>Feature+Extension.swift</key>
83
+ <dict>
84
+ <key>Path</key>
85
+ <string>Feature+Extension.swift</string>
86
+ <key>Group</key>
87
+ <string>Steps</string>
88
+ </dict>
89
+ <key>Feature+Enum.swift</key>
90
+ <dict>
91
+ <key>Path</key>
92
+ <string>Feature+Enum.swift</string>
93
+ <key>Group</key>
94
+ <string>Elements</string>
95
+ </dict>
96
+ <key>Info.plist:PackageType</key>
97
+ <string>&lt;key&gt;CFBundlePackageType&lt;/key&gt;
98
+ &lt;string&gt;BNDL&lt;/string&gt;
99
+ </string>
100
+ <key>___PACKAGENAMEASIDENTIFIER___Tests.swift</key>
101
+ <dict>
102
+ <key>Path</key>
103
+ <string>___PACKAGENAMEASIDENTIFIER___Tests.swift</string>
104
+ <key>Group</key>
105
+ <string>Tests</string>
106
+ </dict>
107
+ </dict>
108
+ </dict>
109
+ </plist>
@@ -0,0 +1,38 @@
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 is a actual representation of the test which extends to XCFit and confirms to Feature protocol. We can write a protocol per test implement steps with extensions and store elements in the enums.
12
+
13
+ */
14
+
15
+ import XCTest
16
+
17
+ //import XCFit
18
+
19
+ // Once XCFit is imported then you can extend this class to use pre-defined steps
20
+
21
+ class ___PACKAGENAMEASIDENTIFIER___Tests: XCTestCase, Feature {
22
+
23
+ override func setUp() {
24
+ super.setUp()
25
+
26
+ continueAfterFailure = false
27
+ XCUIApplication().launch()
28
+ }
29
+
30
+ override func tearDown() {
31
+ super.tearDown()
32
+ }
33
+
34
+ func testAppIsRunning() {
35
+ givenTheAppIsRunning()
36
+ }
37
+ }
38
+
data/homebrew/xcfit CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'fileutils'
4
4
  require 'tempfile'
5
5
 
6
- VERSION = "4.0.3"
6
+ VERSION = "4.0.4"
7
7
 
8
8
  @root_dir = File.expand_path('~')
9
9
  @root_lib_dir = File.join(@root_dir, 'Library')
data/lib/XCFit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module XCFit
2
- VERSION = "4.0.3"
2
+ VERSION = "4.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcfit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant86
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-08 00:00:00.000000000 Z
11
+ date: 2017-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -105,6 +105,14 @@ files:
105
105
  - XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.m
106
106
  - XCFit_Templates/XCFit/Cucumberish UI Test Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___.swift
107
107
  - XCFit_Templates/XCFit/Page Object Bundle.xctemplate/TemplateInfo.plist
108
+ - XCFit_Templates/XCFit/Protocol BDD Bundle.xctemplate/TemplateInfo.plist
109
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/Feature+Enum.swift
110
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/Feature+Extension.swift
111
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/Feature+Protocol.swift
112
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/TemplateIcon.png
113
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/TemplateIcon@2x.png
114
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/TemplateInfo.plist
115
+ - XCFit_Templates/XCFit/Ptotocol BDD Bundle Base.xctemplate/___PACKAGENAMEASIDENTIFIER___Tests.swift
108
116
  - XCFit_Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/Extensions.swift
109
117
  - XCFit_Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeScreen.swift
110
118
  - XCFit_Templates/XCFit/XCUI POM Test Bundle Base.xctemplate/HomeScreenTest.swift