cornucopia 0.1.50 → 0.1.51
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d9081ee6f30dd911c453af1ad02631f269e4d2a
|
4
|
+
data.tar.gz: 624e335112511aa9c8c375d1a06910c6369e5879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c01410621c2a580732d436f479882774f1663e49f7384a54c7df08bf1b4d32041cd3fb1cb2d9089ea5bef5c2579051af6e6c078aa5c4999144d8d1286d584f21
|
7
|
+
data.tar.gz: 253e7a2b7184d834c9644cf67a9e2ec0fee01dcb1c2a6a994f0bc3b9d534137aa12b85c5af3a56f8bfe9b1730f99d97f211ab1f1b90c41acd1aaaf4e9c4fde52
|
@@ -167,7 +167,7 @@ end
|
|
167
167
|
time = Benchmark.measure do
|
168
168
|
puts "Cornucopia::Hook::suite start" if Cornucopia::Util::Configuration.benchmark
|
169
169
|
|
170
|
-
Cornucopia::Util::ReportBuilder.new_report("cucumber_report")
|
170
|
+
Cornucopia::Util::ReportBuilder.new_report("cucumber_report#{Cornucopia::Util::Configuration.report_postfix}")
|
171
171
|
end
|
172
172
|
|
173
173
|
puts "Cornucopia::Hook::suite start time: #{time}" if Cornucopia::Util::Configuration.benchmark
|
@@ -46,7 +46,7 @@ RSpec.configure do |config|
|
|
46
46
|
time = Benchmark.measure do
|
47
47
|
puts "Cornucopia::Hook::suite start" if Cornucopia::Util::Configuration.benchmark
|
48
48
|
|
49
|
-
Cornucopia::Util::ReportBuilder.new_report("rspec_report")
|
49
|
+
Cornucopia::Util::ReportBuilder.new_report("rspec_report#{Cornucopia::Util::Configuration.report_postfix}")
|
50
50
|
end
|
51
51
|
|
52
52
|
puts "Cornucopia::Hook::suite start time: #{time}" if Cornucopia::Util::Configuration.benchmark
|
@@ -71,4 +71,4 @@ Spinach.hooks.after_run do |status|
|
|
71
71
|
Cornucopia::Util::ReportBuilder.current_report.close
|
72
72
|
end
|
73
73
|
|
74
|
-
Cornucopia::Util::ReportBuilder.new_report "spinach_report"
|
74
|
+
Cornucopia::Util::ReportBuilder.new_report "spinach_report#{Cornucopia::Util::Configuration.report_postfix}"
|
@@ -37,6 +37,7 @@ module Cornucopia
|
|
37
37
|
configurations.open_report_settings = { default: false }
|
38
38
|
configurations.base_folder = "cornucopia_report"
|
39
39
|
configurations.benchmark = false
|
40
|
+
configurations.report_postfix = ""
|
40
41
|
|
41
42
|
# configurations.alternate_retry = false
|
42
43
|
|
@@ -508,7 +509,7 @@ module Cornucopia
|
|
508
509
|
# num_lines returns the number of lines that will be grabbed
|
509
510
|
# for a file. If no file name is supplied, or the name does not match a
|
510
511
|
# user file, the default log length will returned.
|
511
|
-
def num_lines(log_file_name=nil)
|
512
|
+
def num_lines(log_file_name = nil)
|
512
513
|
Cornucopia::Util::Configuration.instance.configurations.user_log_files[log_file_name].try(:[], :num_lines) ||
|
513
514
|
Cornucopia::Util::Configuration.instance.configurations.default_num_lines
|
514
515
|
end
|
@@ -785,6 +786,17 @@ module Cornucopia
|
|
785
786
|
def benchmark=(value)
|
786
787
|
Cornucopia::Util::Configuration.instance.configurations.benchmark = value
|
787
788
|
end
|
789
|
+
|
790
|
+
# Adds a postfix to report names
|
791
|
+
#
|
792
|
+
# Defaults to empty string.
|
793
|
+
def report_postfix
|
794
|
+
Cornucopia::Util::Configuration.instance.configurations.report_postfix
|
795
|
+
end
|
796
|
+
|
797
|
+
def report_postfix=(value)
|
798
|
+
Cornucopia::Util::Configuration.instance.configurations.report_postfix = value
|
799
|
+
end
|
788
800
|
end
|
789
801
|
end
|
790
802
|
end
|
data/lib/cornucopia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cornucopia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RealNobody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|