cukehub 0.9.0 → 0.9.0.1

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 +1 -20
  3. data/lib/tasks/cukehub.rake +18 -0
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb5fbf15681528534d8e0d8d9bdbcdc98b36b5c2
4
- data.tar.gz: 4b12192a2b3b238eeac61a2b3a7868be952841fc
3
+ metadata.gz: 0ea452bef8b4755c85295224995a5d53e5455b0b
4
+ data.tar.gz: 9f42cbc549763a77d0920bb48c3285fa2345d410
5
5
  SHA512:
6
- metadata.gz: db5843e320d96e3d46c01ecc30982e124b764757b50b49440255230131cd5497a637d021f2628e2b959af3af7f7294b96866e853d68575b72d5eaaa3f4885ffd
7
- data.tar.gz: 9c26b875c0d77ce3f8c1f566f440e04588d8d8198d14ec0bd0b6012dd9a3dcafe6ee6cea6917566c2549227d3eff2398fea5f8c00311c9cacbac029cb871ead6
6
+ metadata.gz: 0a288f26cd47c7b6570da77f8adc97f732c49a9ada6daf118dd450e7b5f42a50f2dfd7cdc3973c1e60a21403b920ca8e1695ed13e8ecf3ff4cf74cfe7b7c7f46
7
+ data.tar.gz: 6ecc4f60a9634758f63fb614a793bb8f1354af8f295470c186f5e91572ce9bd0813f429e0f914ea8702853d1e7911fd3ffc2206a1867cc244a0ccf8fce942f19
data/Rakefile CHANGED
@@ -1,20 +1 @@
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
1
+ Dir.glob('lib/tasks/*.rake').each { |r| import r }
@@ -0,0 +1,18 @@
1
+ namespace :cuke do
2
+ desc "cucunber -t <@tags>"
3
+ task :hub, [:tag] do |t, args|
4
+ file = "#{args[:tag]}".gsub(/@/, '')
5
+ Bundler.with_clean_env do
6
+ console_output = ""
7
+ IO.popen("cucumber -t #{args[:tag]} -f rerun --out #{file}.txt", 'r+') do |pipe|
8
+ puts console_output = pipe.read
9
+ pipe.close_write
10
+ end
11
+ IO.popen("cucumber #{args[:tag]}.txt --format html --out=#{file}.html --format pretty", 'r+') do |pipe|
12
+ puts "** RE-RUNNING FAILED #{args[:tags]}.txt SCENARIOS **"
13
+ puts console_output = pipe.read
14
+ pipe.close_write
15
+ end
16
+ end
17
+ end
18
+ 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.9.0
4
+ version: 0.9.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich Downie
@@ -60,6 +60,7 @@ extra_rdoc_files: []
60
60
  files:
61
61
  - Rakefile
62
62
  - lib/cukehub.rb
63
+ - lib/tasks/cukehub.rake
63
64
  homepage: http://cukehub.com
64
65
  licenses:
65
66
  - MIT