fwtoolkit 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module FWToolkit
18
18
  end
19
19
 
20
20
  desc 'Clean, build and test'
21
- task :build => ["ci:bundle", "ci:update_submodules", "xcode:debug_simulator:cleanbuild", "frank:build", "frank:ci_test"]
21
+ task :build => ["ci:bundle", "ci:update_submodules", "xcode:debug_simulator:cleanbuild", "frank:build", "frank:ci_test_rerun_failures"]
22
22
 
23
23
  desc 'Clean, build and test for Cocoapods projects'
24
24
  task :pod_build => ["ci:bundle", "pod:update_specs", "pod:clean_install", "ci:build"]
@@ -44,12 +44,24 @@ module FWToolkit
44
44
  factory_template = File.join 'templates', 'models', 'factories.rb.erb'
45
45
  template(factory_template, File.join(output_dir, 'factories.rb'))
46
46
  end
47
+
48
+ desc 'Run CI Frank with rerun option'
49
+ task :ci_test_rerun_failures do |t|
50
+ exception = FWToolkit::Tasks.run_rake_task("frank:ci_test")
51
+ exception = FWToolkit::Tasks.run_rake_task("frank:ci_test_rerun") if exception
52
+ raise exception if exception
53
+ end
47
54
 
48
55
  Cucumber::Rake::Task.new(:ci_test, 'Run Frank acceptance tests with CI options') do |t|
49
56
  ENV['APP_BUNDLE_PATH'] = File.join( Dir.pwd, 'Frank/frankified_build/Frankified.app' )
50
57
  ENV['USE_SIM_LAUNCHER_SERVER'] = 'YES'
51
58
  artifacts_dir = FWToolkit::Tasks.cc_artifacts_dir
52
- t.cucumber_opts = "Frank/features --tags ~@wip --format pretty --format html --out '#{artifacts_dir}/frank_results.html' --format rerun --out '#{artifacts_dir}/frank_rerun.txt'"
59
+ t.cucumber_opts = "Frank/features --tags @dev --format pretty --format html --out '#{artifacts_dir}/frank_results.html' --format rerun --out '#{artifacts_dir}/frank_rerun.txt'"
60
+ end
61
+
62
+ Cucumber::Rake::Task.new(:ci_test_rerun, 'Run failed Frank acceptance tests with CI options') do |t|
63
+ artifacts_dir = FWToolkit::Tasks.cc_artifacts_dir
64
+ t.cucumber_opts = "@#{artifacts_dir}/frank_rerun.txt --format pretty --require Frank/features"
53
65
  end
54
66
 
55
67
  desc 'Run Frank acceptance tests'
@@ -3,5 +3,14 @@ module FWToolkit
3
3
  def self.cc_artifacts_dir
4
4
  ENV['CC_BUILD_ARTIFACTS'] ? ENV['CC_BUILD_ARTIFACTS'] : File.join(Dir.pwd, 'artifacts')
5
5
  end
6
+
7
+ def self.run_rake_task(name)
8
+ begin
9
+ Rake::Task[name].invoke
10
+ rescue Exception => e
11
+ return e
12
+ end
13
+ nil
14
+ end
6
15
  end
7
16
  end
@@ -1,3 +1,3 @@
1
1
  module FWToolkit
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fwtoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -329,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
329
329
  version: '0'
330
330
  segments:
331
331
  - 0
332
- hash: 2478113075848411974
332
+ hash: -2581004337018425377
333
333
  required_rubygems_version: !ruby/object:Gem::Requirement
334
334
  none: false
335
335
  requirements:
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
338
338
  version: '0'
339
339
  segments:
340
340
  - 0
341
- hash: 2478113075848411974
341
+ hash: -2581004337018425377
342
342
  requirements: []
343
343
  rubyforge_project:
344
344
  rubygems_version: 1.8.25