report_builder 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -20
  3. metadata +13 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1297445ce616ba88156e200dd9adb8cc39add33f
4
- data.tar.gz: c67cf461fa6270b3e443c7e36d0aad2ca0003e9b
3
+ metadata.gz: 2eb0d611e3ba2d7bb89b58dfdd6625b698f60811
4
+ data.tar.gz: 692a0289a753d41caf88347f92385c21b1e980f3
5
5
  SHA512:
6
- metadata.gz: 41688c490fab19a40e8ec414ed84c9a9f5cc1e949c2015fdd75e7ea22c0229d1a7306f03bf5a84e944967c1673314d6db9f1c731735d691f73e83e5227e1265b
7
- data.tar.gz: baac15f35fd59e796360a7c9c31e253f98a1c183cb1a51b5ebf0d45a5a4397d3f612e2a13b7c57246e629de86bc31f72c421dc0a8f8b54feb3ef001caeeacd18
6
+ metadata.gz: ec914eab913b71e1818be8091fd5e8b01aeb2dd515db5ef43b6357b3727d7604087d5046198ae344a4b7847f7c97eca40a48f17adc07d0f66f2e20873c37ce29
7
+ data.tar.gz: 1d889bd497409dba0efd50a1805232f1f384b42589fb45d8b765498ebe3cd90aa9a2479760d50f5d3ae3748abbd737ee0d86130626b36d8f089df273e4137631
data/README.md CHANGED
@@ -1,36 +1,66 @@
1
1
  # ReportBuilder
2
2
  Ruby gem to merge Cucumber JSON reports and build single HTML Test Report
3
3
 
4
- # Installation
4
+ ## Installation
5
5
 
6
+ ```bash
6
7
  gem install report_builder
8
+ ```
7
9
 
10
+ ## Usage
8
11
 
9
- # Usage
10
-
11
- Code Examples:
12
+ ### Code Examples:
12
13
 
14
+ ```ruby
13
15
  require 'report_builder'
14
- #1
16
+
17
+ # 1
15
18
  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
19
+
20
+ # 2
21
+ ReportBuilder.build_report('path/of/json/cucumber.json', 'my_test_report')
22
+
23
+ # 3
24
+ ReportBuilder.build_report([
25
+ 'path/of/json/cucumber1.json',
26
+ 'path/of/json/cucumber2.json',
27
+ 'path/of/json/files/dir/'
28
+ ])
29
+
30
+ # 4
21
31
  ReportBuilder.build_report()
22
- #5
32
+
33
+ # 5
23
34
  ReportBuilder::COLOR[:passed] = '#ffffff'
24
35
  ReportBuilder.build_report()
36
+ ```
37
+
38
+ ### Command Example:
39
+
40
+ ```bash
41
+ report_builder 'path/of/json/files/dir' 'report_file'
42
+ ```
43
+
44
+ ### Rake Example:
45
+
46
+ ```ruby
47
+ # Add in Rakefile
48
+ require 'report_builder.rake'
49
+ # Then run rake task report_builder
50
+ ```
51
+
52
+ ```bash
53
+ rake report_builder ['path/of/json/files/dir','report_file']
54
+ ```
55
+
56
+ ## Contributing
57
+
58
+ We're open to any contribution. It has to be tested properly though.
59
+
60
+ ## Maintainer
25
61
 
26
- Command Example:
62
+ [Rajat Thareja](http://www.rajatthareja.com)
27
63
 
28
- report_builder 'path/of/json/files/dir' 'report_file'
29
-
30
- Rake Example:
64
+ ## License
31
65
 
32
- #In Rakefile
33
- require 'report_builder.rake'
34
- #Run task using
35
- rake report_builder ['path/of/json/files/dir','report_file']
36
-
66
+ Copyright (c) 2016 [MIT LICENSE](LICENSE)
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajat Thareja
@@ -14,40 +14,40 @@ dependencies:
14
14
  name: builder
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.2'
20
- - - ">="
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: 3.2.2
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.2'
30
- - - ">="
30
+ - - '>='
31
31
  - !ruby/object:Gem::Version
32
32
  version: 3.2.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - "~>"
37
+ - - ~>
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.8'
40
- - - ">="
40
+ - - '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.8.1
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.8'
50
- - - ">="
50
+ - - '>='
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.8.1
53
53
  description: Merge Cucumber JSON reports and build single HTML Test Report
@@ -76,18 +76,19 @@ require_paths:
76
76
  - lib
77
77
  required_ruby_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ">="
79
+ - - '>='
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
- - - ">="
84
+ - - '>='
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.4.6
89
+ rubygems_version: 2.4.8
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: ReportBuilder
93
93
  test_files: []
94
+ has_rdoc: