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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 931a3fb3ccb0332e2388061dfc7cc4eb78513c32
4
- data.tar.gz: da3fa84f963257d00fe58188a11f24703b61e288
3
+ metadata.gz: 184f283ec69740e687f12c9b7b26f9cb9275f458
4
+ data.tar.gz: 6b21adf20f05196cfd30a1670b463e07a2237af5
5
5
  SHA512:
6
- metadata.gz: 7cd2806dcef56a2c14e7444f1b2a1937a2ac3c2917a57cbe5b4f56a823487e4cdd877b5b1904f1130cd992aaa01b55aa50dceb73889374976f6e92a81c800ba1
7
- data.tar.gz: ab20c2dcd47c76b8a72c0ffb6262308e8e10df93bb021dbbf498f57096862bc371e68211f96f066fe5f0953b3f27ce2756b7ac9500539f04f5577b7446000d7e
6
+ metadata.gz: 7b013fd71158d353e312e9dd38f568561be2d77da71d0acd67443bf0b6cebe33ea150174a23e11313f1953aa88ad88fd409ced416bcc00be47f3556a86f0f49d
7
+ data.tar.gz: 8c4dea06ee1d8378d5214c7cb446369d7bcc6973a30ac38ff0cdc4587c22478f8f8dfe0d10850a415b663f2154535c37f17ea36bdc5006413096b35cd544c0b1
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ *.gem
2
+ .idea/
3
+ .DS_Store
4
+ temp/
5
+ Gemfile.lock
6
+ doc/
7
+ .yardoc/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in report_builder.gemspec
4
+ gemspec
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
- | -f, --format | x,y,z | List of report format - html,json,retry |
78
- | -t, --tabs | x,y,z | List of report tabs - overview,features,scenarios,errors |
79
- | -c, --compress | | Reduce report size if embedding images |
80
- | -T, --title | TITLE | Report title |
81
- | -I, --info | a:x,b:y,c:z | List of additional info about test - key:value |
82
- | -h, --help | | Show available command line switches |
83
- | -v, --version | | Show gem version |
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