report_builder 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +36 -0
- data/lib/{rake_task/report_builder.rb → report_builder.rake} +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1297445ce616ba88156e200dd9adb8cc39add33f
|
4
|
+
data.tar.gz: c67cf461fa6270b3e443c7e36d0aad2ca0003e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41688c490fab19a40e8ec414ed84c9a9f5cc1e949c2015fdd75e7ea22c0229d1a7306f03bf5a84e944967c1673314d6db9f1c731735d691f73e83e5227e1265b
|
7
|
+
data.tar.gz: baac15f35fd59e796360a7c9c31e253f98a1c183cb1a51b5ebf0d45a5a4397d3f612e2a13b7c57246e629de86bc31f72c421dc0a8f8b54feb3ef001caeeacd18
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# ReportBuilder
|
2
|
+
Ruby gem to merge Cucumber JSON reports and build single HTML Test Report
|
3
|
+
|
4
|
+
# Installation
|
5
|
+
|
6
|
+
gem install report_builder
|
7
|
+
|
8
|
+
|
9
|
+
# Usage
|
10
|
+
|
11
|
+
Code Examples:
|
12
|
+
|
13
|
+
require 'report_builder'
|
14
|
+
#1
|
15
|
+
ReportBuilder.build_report('path/of/json/files/dir')
|
16
|
+
#2
|
17
|
+
ReportBuilder.build_report('path/of/json/file.json', my_test_report)
|
18
|
+
#3
|
19
|
+
ReportBuilder.build_report(['path/of/json/file1.json','path/of/json/file2.json','path/of/json/files/dir/'])
|
20
|
+
#4
|
21
|
+
ReportBuilder.build_report()
|
22
|
+
#5
|
23
|
+
ReportBuilder::COLOR[:passed] = '#ffffff'
|
24
|
+
ReportBuilder.build_report()
|
25
|
+
|
26
|
+
Command Example:
|
27
|
+
|
28
|
+
report_builder 'path/of/json/files/dir' 'report_file'
|
29
|
+
|
30
|
+
Rake Example:
|
31
|
+
|
32
|
+
#In Rakefile
|
33
|
+
require 'report_builder.rake'
|
34
|
+
#Run task using
|
35
|
+
rake report_builder ['path/of/json/files/dir','report_file']
|
36
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
desc 'Rake task to build report'
|
2
2
|
task :report_builder, [:file_or_dir, :output_file_name] do |t, args|
|
3
3
|
args.with_defaults(:file_or_dir => nil, :output_file_name => 'test_report')
|
4
|
-
require 'report_builder'
|
4
|
+
require 'report_builder.rake'
|
5
5
|
ReportBuilder.build_report args.file_or_dir, args.output_file_name
|
6
6
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: report_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajat Thareja
|
@@ -57,8 +57,9 @@ executables:
|
|
57
57
|
extensions: []
|
58
58
|
extra_rdoc_files: []
|
59
59
|
files:
|
60
|
+
- README.md
|
60
61
|
- bin/report_builder
|
61
|
-
- lib/
|
62
|
+
- lib/report_builder.rake
|
62
63
|
- lib/report_builder.rb
|
63
64
|
- vendor/assets/javascripts/highcharts-3d.js
|
64
65
|
- vendor/assets/javascripts/highcharts.js
|