cukehub 0.8.9 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +20 -1
  3. metadata +1 -2
  4. data/lib/tasks/cukehub.rake +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32ae0f1382302a3eaa1ee0e3618562b078c01507
4
- data.tar.gz: 21513a309e362d778d3506f5718c3e7ab4c522e8
3
+ metadata.gz: cb5fbf15681528534d8e0d8d9bdbcdc98b36b5c2
4
+ data.tar.gz: 4b12192a2b3b238eeac61a2b3a7868be952841fc
5
5
  SHA512:
6
- metadata.gz: 6f625341de2ac28dc8d4ededae7cb4db09c197c196709e8309a882d01faef9f16812256f06a3e2744e36a672629722bfcee9ad0f1259f24b9ad3aadc3d1a5472
7
- data.tar.gz: 187603ed86eee58c9b965aca119e2022e8e35e454774ff64138c413c77a2f184c6651864264ce288aaa284ee9c790f932185b592aad76fc162a047d976a1e407
6
+ metadata.gz: db5843e320d96e3d46c01ecc30982e124b764757b50b49440255230131cd5497a637d021f2628e2b959af3af7f7294b96866e853d68575b72d5eaaa3f4885ffd
7
+ data.tar.gz: 9c26b875c0d77ce3f8c1f566f440e04588d8d8198d14ec0bd0b6012dd9a3dcafe6ee6cea6917566c2549227d3eff2398fea5f8c00311c9cacbac029cb871ead6
data/Rakefile CHANGED
@@ -1 +1,20 @@
1
- Dir.glob('lib/tasks/*.rake').each { |r| import r }
1
+ require 'rubygems'
2
+
3
+ namespace :cuke do
4
+ desc "cucunber -t <@tags> against qa.cloudchecker.com"
5
+ task :hub, [:tag] do |t, args|
6
+ file = "#{args[:tag]}".gsub(/@/, '')
7
+ Bundler.with_clean_env do
8
+ console_output = ""
9
+ IO.popen("thor set:chrome_ci && cucumber -t #{args[:tag]} -f rerun --out #{file}.txt", 'r+') do |pipe|
10
+ puts console_output = pipe.read
11
+ pipe.close_write
12
+ end
13
+ IO.popen("cucumber #{args[:tag]}.txt --format html --out=#{file}.html --format pretty", 'r+') do |pipe|
14
+ puts "** RE-RUNNING FAILED #{args[:tags]}.txt SCENARIOS **"
15
+ puts console_output = pipe.read
16
+ pipe.close_write
17
+ end
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cukehub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Downie
@@ -60,7 +60,6 @@ extra_rdoc_files: []
60
60
  files:
61
61
  - Rakefile
62
62
  - lib/cukehub.rb
63
- - lib/tasks/cukehub.rake
64
63
  homepage: http://cukehub.com
65
64
  licenses:
66
65
  - MIT
@@ -1,20 +0,0 @@
1
- require 'rubygems'
2
-
3
- namespace :cuke do
4
- desc "cucunber -t <@tags> against qa.cloudchecker.com"
5
- task :hub, [:tag] do |t, args|
6
- file = "#{args[:tag]}".gsub(/@/, '')
7
- Bundler.with_clean_env do
8
- console_output = ""
9
- IO.popen("thor set:chrome_ci && cucumber -t #{args[:tag]} -f rerun --out #{file}.txt", 'r+') do |pipe|
10
- puts console_output = pipe.read
11
- pipe.close_write
12
- end
13
- IO.popen("cucumber #{args[:tag]}.txt --format html --out=#{file}.html --format pretty", 'r+') do |pipe|
14
- puts "** RE-RUNNING FAILED #{args[:tags]}.txt SCENARIOS **"
15
- puts console_output = pipe.read
16
- pipe.close_write
17
- end
18
- end
19
- end
20
- end