cukehub 0.9.0.5 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -0
- data/lib/cukehub.rb +1 -1
- data/lib/tasks/cukehub.rake +18 -0
- metadata +18 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b7c23e822b1087f2febf7ed0d7507466ec26aa2
|
4
|
+
data.tar.gz: 708e61d16744dd837c5f2ac2ef6bacd6a33d35d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 390e7a7607cca8245b157cf5b3e41de9b3b8549f90f8170b9644d2342bf840b0edec20e45fa60a12411d99b6888825abebc0d35852c38ee86f54a01cf36520ef
|
7
|
+
data.tar.gz: b0046450343d274e2600f837f18bc47789b251d2fc77e42da5f2d024c332d8fdc97e88f9900c2bb14747800228f9d55a4659e1b130656c64239dbdc846b13d02
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Dir.glob('lib/tasks/*.rake').each { |r| import r }
|
data/lib/cukehub.rb
CHANGED
@@ -30,5 +30,5 @@ After do |scenario|
|
|
30
30
|
params[:browser] = @browser.browser.upcase unless @browser.nil?
|
31
31
|
params[:exception]=scenario.exception.message unless scenario.passed?
|
32
32
|
|
33
|
-
HTTParty.post("
|
33
|
+
HTTParty.post("https://cukehub.com/api/v1/results", body: params)
|
34
34
|
end
|
@@ -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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cukehub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Downie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -38,13 +38,29 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Capture and Analyze your Cucumber Test Results at CukeHub.
|
42
56
|
email: rich@cukehub.com
|
43
57
|
executables: []
|
44
58
|
extensions: []
|
45
59
|
extra_rdoc_files: []
|
46
60
|
files:
|
61
|
+
- Rakefile
|
47
62
|
- lib/cukehub.rb
|
63
|
+
- lib/tasks/cukehub.rake
|
48
64
|
homepage: http://cukehub.com
|
49
65
|
licenses:
|
50
66
|
- MIT
|