cukehub 0.8.9 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +20 -1
- metadata +1 -2
- data/lib/tasks/cukehub.rake +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb5fbf15681528534d8e0d8d9bdbcdc98b36b5c2
|
4
|
+
data.tar.gz: 4b12192a2b3b238eeac61a2b3a7868be952841fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db5843e320d96e3d46c01ecc30982e124b764757b50b49440255230131cd5497a637d021f2628e2b959af3af7f7294b96866e853d68575b72d5eaaa3f4885ffd
|
7
|
+
data.tar.gz: 9c26b875c0d77ce3f8c1f566f440e04588d8d8198d14ec0bd0b6012dd9a3dcafe6ee6cea6917566c2549227d3eff2398fea5f8c00311c9cacbac029cb871ead6
|
data/Rakefile
CHANGED
@@ -1 +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
|
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.
|
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
|
data/lib/tasks/cukehub.rake
DELETED
@@ -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
|