report_builder 0.1.4 → 0.1.5
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/.gitignore +7 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +14 -11
- data/Rakefile +14 -0
- data/bin/report_builder +12 -0
- data/lib/report_builder/builder.rb +646 -0
- data/lib/report_builder/core-ext/hash.rb +10 -0
- data/lib/report_builder.rb +9 -665
- data/report_builder.gemspec +24 -0
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 184f283ec69740e687f12c9b7b26f9cb9275f458
|
4
|
+
data.tar.gz: 6b21adf20f05196cfd30a1670b463e07a2237af5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b013fd71158d353e312e9dd38f568561be2d77da71d0acd67443bf0b6cebe33ea150174a23e11313f1953aa88ad88fd409ced416bcc00be47f3556a86f0f49d
|
7
|
+
data.tar.gz: 8c4dea06ee1d8378d5214c7cb446369d7bcc6973a30ac38ff0cdc4587c22478f8f8dfe0d10850a415b663f2154535c37f17ea36bdc5006413096b35cd544c0b1
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 rajatthareja
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -70,17 +70,20 @@ gem install report_builder
|
|
70
70
|
|
71
71
|
### CLI Options:
|
72
72
|
|
73
|
-
| Option | Values | Explanation
|
74
|
-
|
75
|
-
| -s, --source | x,y,z | List of json path or files
|
76
|
-
| -o, --out | [PATH]NAME | Report path with name without extension
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
| -
|
81
|
-
| -
|
82
|
-
| -
|
83
|
-
| -
|
73
|
+
| Option | Values | Explanation |
|
74
|
+
|----------------|-------------|-------------------------------------------------------------------|
|
75
|
+
| -s, --source | x,y,z | List of json path or files |
|
76
|
+
| -o, --out | [PATH]NAME | Report path with name without extension |
|
77
|
+
| --json_out | [PATH]NAME | Same as the -o option but will only apply the json report format |
|
78
|
+
| --html_out | [PATH]NAME | Same as the -o option but will only apply the html report format |
|
79
|
+
| --retry_out | [PATH]NAME | Same as the -o option but will only apply the retry report format |
|
80
|
+
| -f, --format | x,y,z | List of report format - html,json,retry |
|
81
|
+
| -t, --tabs | x,y,z | List of report tabs - overview,features,scenarios,errors |
|
82
|
+
| -c, --compress | | Reduce report size if embedding images |
|
83
|
+
| -T, --title | TITLE | Report title |
|
84
|
+
| -I, --info | a:x,b:y,c:z | List of additional info about test - key:value |
|
85
|
+
| -h, --help | | Show available command line switches |
|
86
|
+
| -v, --version | | Show gem version |
|
84
87
|
|
85
88
|
### CLI Example:
|
86
89
|
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'rspec/core/rake_task'
|
2
|
+
require "bundler/gem_tasks"
|
3
|
+
|
4
|
+
|
5
|
+
namespace 'report_builder' do
|
6
|
+
|
7
|
+
desc 'Test the project'
|
8
|
+
RSpec::Core::RakeTask.new(:test_everything) do |t, args|
|
9
|
+
t.rspec_opts = '--pattern testing/rspec/spec/**/*_spec.rb'
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
task :default => 'report_builder:test_everything'
|
data/bin/report_builder
CHANGED
@@ -25,6 +25,18 @@ opt_parser = OptionParser.new do |opts|
|
|
25
25
|
options[:report_path] = report_path
|
26
26
|
end
|
27
27
|
|
28
|
+
opts.on('--json_out [PATH]NAME', String, 'Report path for json report with name without extension') do |report_path|
|
29
|
+
options[:json_report_path] = report_path
|
30
|
+
end
|
31
|
+
|
32
|
+
opts.on('--html_out [PATH]NAME', String, 'Report path for html report with name without extension') do |report_path|
|
33
|
+
options[:html_report_path] = report_path
|
34
|
+
end
|
35
|
+
|
36
|
+
opts.on('--retry_out [PATH]NAME', String, 'Report path for retry report with name without extension') do |report_path|
|
37
|
+
options[:retry_report_path] = report_path
|
38
|
+
end
|
39
|
+
|
28
40
|
opts.on('-f','--format x,y,z', Array, 'List of report format - html,json,retry') do |list|
|
29
41
|
options[:report_types] = list
|
30
42
|
end
|