xcfit 4.0.5 → 4.0.6

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: c89dd4a30923b99f98191eb46f5cd59cd78ec7a1
4
- data.tar.gz: 74685620ace8103fedb6bfd118a457f22343686a
3
+ metadata.gz: 0c4b38a7f190fc59012425909b597cf6fcdd1a04
4
+ data.tar.gz: 84bfe7cfd3edba615c6b7d7b95430403d7103152
5
5
  SHA512:
6
- metadata.gz: c8152f246a840639edb226ad93d253f078d48f8731aa856e2d78b06d9a26bf19526b61df4828faada827e78124f005e08ae245c1ce6113c6c78a66c9531587a8
7
- data.tar.gz: 29ab597002a02f16eaac041eab1a051152f5aded4aed263c62e900fa0c18519ed1d5de443984446c275345534eaf843fc5b0e5f83ff51f4da14cb5399f6937fd
6
+ metadata.gz: 94e3a4ad1acf20b558678d297ad58e85b22df1628a75ffed68cb2f8241604041703313f1ecfa12bf86e41a2df7a7fcc5d421dce3ff39147e4aeecfdbd3410a82
7
+ data.tar.gz: 51c52f8b5ec956e88bd6a5b3a17b1937bafac7efaa75771d0d39ab9315df40a1cbdf3676c72d59ae8e202ed0efb301b6cf6568813c8e81ceafd78d63fc7bdd1a
data/Fastlane/Fastfile ADDED
@@ -0,0 +1,57 @@
1
+ default_platform :ios
2
+
3
+ WORKSPACE="YOUR_WORKSPACE.xcworkspace"
4
+ DESTINATION="platform=iOS Simulator,name=iPhone 6,OS=10.3"
5
+ CONFIGURATION="Debug"
6
+
7
+ XCFIT_SCHEME="YOUR_TARGET_ProtocolBDDTests"
8
+ XCFIT_CUCUMBERISH_SCHEME="YOUR_TARGET_CucumberTests"
9
+ XCFIT_FITNESSE_SCHEME="AcceptanceUnitTests"
10
+
11
+ desc "Runs XCFit Protocol Oriented or Page Object Tests and Generate JUnit and HTML reports"
12
+ lane :xcfit do |options|
13
+ opts = {
14
+ :scheme => XCFIT_SCHEME,
15
+ :workspace => WORKSPACE,
16
+ :configuration => CONFIGURATION,
17
+ :destination => DESTINATION,
18
+ :buildlog_path => './build',
19
+ :output_directory => './build/xcfit/reports',
20
+ :output_style => 'basic',
21
+ :output_types => 'junit, html',
22
+ :code_coverage => true,
23
+ }
24
+ scan(opts)
25
+ end
26
+
27
+ desc "Runs XCFit Cucumberish Tests and Generate JUnit and HTML reports"
28
+ lane :xcfit_cucumberish do |options|
29
+ opts = {
30
+ :scheme => XCFIT_CUCUMBERISH_SCHEME,
31
+ :workspace => WORKSPACE,
32
+ :configuration => CONFIGURATION,
33
+ :destination => DESTINATION,
34
+ :buildlog_path => './build',
35
+ :output_directory => './build/cucumberish/reports',
36
+ :output_style => 'basic',
37
+ :output_types => 'junit, html',
38
+ :code_coverage => true,
39
+ }
40
+ scan(opts)
41
+ end
42
+
43
+ desc "Runs XCFit Fitnesse Tests and Generate JUnit and HTML reports"
44
+ lane :xcfit_fitnesse do |options|
45
+ opts = {
46
+ :scheme => XCFIT_FITNESSE_SCHEME,
47
+ :workspace => WORKSPACE,
48
+ :configuration => CONFIGURATION,
49
+ :destination => DESTINATION,
50
+ :buildlog_path => './build',
51
+ :output_directory => './build/fitnesse/reports',
52
+ :output_style => 'basic',
53
+ :output_types => 'junit, html',
54
+ :code_coverage => true,
55
+ }
56
+ scan(opts)
57
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcfit (4.0.4)
4
+ xcfit (4.0.5)
5
5
  thor (~> 0.17.0)
6
6
 
7
7
  GEM
data/homebrew/xcfit CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'fileutils'
4
4
  require 'tempfile'
5
5
 
6
- VERSION = "4.0.5"
6
+ VERSION = "4.0.6"
7
7
 
8
8
  @root_dir = File.expand_path('~')
9
9
  @root_lib_dir = File.join(@root_dir, 'Library')
@@ -27,6 +27,7 @@ def clone_xcfit
27
27
  @src_template_dir = "/tmp/XCFit-#{VERSION}/XCFit_Templates"
28
28
  @xcfit_template_dir = "/tmp/XCFit-#{VERSION}/XCFit_Templates/XCFit"
29
29
  @gherkin_template_dir = "/tmp/XCFit-#{VERSION}/XCFit_Templates/Gherkin"
30
+ @fastlane_template_dir = "/tmp/XCFit-#{VERSION}/Fastlane"
30
31
  end
31
32
 
32
33
  def clean_xcfit
@@ -61,6 +62,16 @@ def setup_xcfit_podfile
61
62
  puts "Podfile successfully created in the current working directory here at #{Dir.getwd}/Podfile"
62
63
  end
63
64
 
65
+ def setup_xcfit_fastfile
66
+ puts '=======Creating Template Podfile for the XCFit project'
67
+ puts '=======You need to replace schemes and other varibales as required ========'
68
+ clone_xcfit
69
+ puts "==================XXXXXXXX==========================="
70
+ puts "==================XXXXXXXX==========================="
71
+ FileUtils.cp_r(@fastlane_template_dir, FileUtils.pwd())
72
+ clean_xcfit
73
+ end
74
+
64
75
  def print_usage
65
76
  puts <<EOF
66
77
 
@@ -68,9 +79,11 @@ def print_usage
68
79
 
69
80
  <command-name> can be one of
70
81
  setup_xcode_templates
71
- generate a Xcode 8 Templates for the XCUI, Fitnesse and Cucumberish
82
+ generate a Xcode Templates for the XCUI, Fitnesse and Cucumberish
72
83
  setup_xcfit_podfile
73
84
  Creates template Podfile for the XCFit project covering all targets.
85
+ setup_xcfit_fastfile
86
+ Creates template Fastfile to run tests with fastlane.
74
87
  version
75
88
  prints the XCFit version
76
89
  help
@@ -90,6 +103,9 @@ def print_help
90
103
  <command-name> can be one of
91
104
  help
92
105
  setup_xcode_templates
106
+ setup_xcfit_podfile
107
+ setup_xcfit_fastfile
108
+
93
109
  version
94
110
 
95
111
  Commands:
@@ -99,6 +115,8 @@ def print_help
99
115
 
100
116
  setup_xcfit_podfile : Creates template Podfile for the XCFit project covering all targets.
101
117
 
118
+ setup_xcfit_fastfile : Creates template Fastfile to run tests with fastlane.
119
+
102
120
  version : prints the XCFit version
103
121
 
104
122
  <Options>
@@ -116,6 +134,8 @@ else
116
134
  setup_xcode_templates
117
135
  elsif cmd == 'setup_xcfit_podfile'
118
136
  setup_xcfit_podfile
137
+ elsif cmd == 'setup_xcfit_fastfile'
138
+ setup_xcfit_fastfile
119
139
  elsif cmd == 'version'
120
140
  puts "#{VERSION}"
121
141
  else
data/lib/XCFit/main.rb CHANGED
@@ -7,6 +7,8 @@ module XCFit
7
7
  include Thor::Actions
8
8
  $source_dir = File.expand_path '../../..', __FILE__
9
9
  $source_cocoapods_dir = File.join($source_dir, 'Cocoapods')
10
+ $source_fastlane_dir = File.join($source_dir, 'Fastlane')
11
+ $current_working_dir = File.expand_path File.dirname(__FILE__)
10
12
  $source_template_dir = File.join($source_dir, 'XCFit_Templates')
11
13
  $source_template_xcode7_dir = File.join($source_dir, 'Xcode7-Templates')
12
14
  $source_xcfit_dir = File.join($source_template_dir, 'XCFit')
@@ -30,14 +32,6 @@ module XCFit
30
32
  say XCFit::VERSION
31
33
  end
32
34
 
33
- desc 'setup_xcfit_podfile', 'Setup XCFit Podfile template'
34
- def setup_xcfit_podfile
35
- puts '=======Creating Template Podfile for the XCFit project'
36
- puts '=======You need to replace targets with your project targets and comment unwanted targets ========'
37
- system("curl -s -O https://raw.githubusercontent.com/Shashikant86/XCFit/master/Cocoapods/Podfile")
38
- puts "Podfile successfully created in the current working directory here at #{Dir.getwd}/Podfile"
39
- end
40
-
41
35
  desc 'setup_xcode_templates', 'Generate All Xcode Templates for the Gherkin Feature Files & targets for Cucumberish and Fitnesse'
42
36
  def setup_xcode_templates
43
37
  if File.exist?($root_xcfit_dir)
@@ -57,5 +51,21 @@ module XCFit
57
51
  puts 'You wont need to restart Xcode but do so if nesessary!'
58
52
  puts " ***************** Enjoy XCFit *****************"
59
53
  end
54
+
55
+ desc 'setup_xcfit_podfile', 'Setup XCFit Podfile template'
56
+ def setup_xcfit_podfile
57
+ puts '=======Creating Template Podfile for the XCFit project'
58
+ puts '=======You need to replace targets with your project targets and comment unwanted targets ========'
59
+ system("curl -s -O https://raw.githubusercontent.com/Shashikant86/XCFit/master/Cocoapods/Podfile")
60
+ puts "Podfile successfully created in the current working directory here at #{Dir.getwd}/Podfile"
61
+ end
62
+
63
+ desc 'setup_xcfit_fastfile', 'Setup Fastlane Template'
64
+ def setup_xcfit_fastfile
65
+ puts '=======Creating Template Podfile for the XCFit project'
66
+ puts '=======You need to replace schemes and other varibales as required ========'
67
+ FileUtils.cp_r($source_fastlane_dir, FileUtils.pwd())
68
+ puts '=======Fastlane with Fastfile setup successfully ========'
69
+ end
60
70
  end
61
71
  end
data/lib/XCFit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module XCFit
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcfit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.5
4
+ version: 4.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant86
@@ -69,6 +69,7 @@ files:
69
69
  - Cartfile.resolved
70
70
  - Cocoapods/Podfile
71
71
  - Dangerfile
72
+ - Fastlane/Fastfile
72
73
  - Gemfile
73
74
  - Gemfile.lock
74
75
  - LICENSE