hiptest-publisher 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/hiptest-publisher/options_parser.rb +5 -0
- data/lib/hiptest-publisher/renderer.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a94ae557d9bf6320ee52ab202c06fb5bb79c63da
|
4
|
+
data.tar.gz: 7ec8ad85516371c5cd6145e59e54c82d0716a2dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feda4d5c7b97836f14c3e5530cf69056c8203b0529ae72c04a3d96ccf08e0e5cd264292273cbdecbac90fdda1b2888d0393705cc5890ba7a1d6ca46cf13f6542
|
7
|
+
data.tar.gz: afe69fa756b726ebd9d6f24a9efaecc8167e82b82aa7fc39de9b1383306caaa0d5c8cec9e82325ecdcb75b4c699ca55612a9d01d3cc5a2431d5e82f449f28179
|
data/README.md
CHANGED
@@ -56,6 +56,7 @@ Specific options:
|
|
56
56
|
-f, --framework=FRAMEWORK Test framework to use
|
57
57
|
-o, --output-directory=PATH Output directory (default: .)
|
58
58
|
-c, --config-file=PATH Configuration file (default: config)
|
59
|
+
--overriden-templates=PATH Folder for overriden templates
|
59
60
|
--test-run-id=ID Export data from a test run
|
60
61
|
--scenario-ids=IDS Filter scenarios by ids
|
61
62
|
--scenario-tags=TAGS Filter scenarios by tags
|
@@ -75,6 +75,7 @@ class OptionsParser
|
|
75
75
|
Option.new('f', 'framework=FRAMEWORK', '', String, "Test framework to use", :framework),
|
76
76
|
Option.new('o', 'output-directory=PATH', '.', String, "Output directory", :output_directory),
|
77
77
|
Option.new('c', 'config-file=PATH', 'config', String, "Configuration file", :config),
|
78
|
+
Option.new(nil, 'overriden-templates=PATH', '', String, "Folder for overriden templates", :overriden_templates),
|
78
79
|
Option.new(nil, 'test-run-id=ID', '', String, "Export data from a test run", :test_run_id),
|
79
80
|
Option.new(nil, 'scenario-ids=IDS', '', String, "Filter scenarios by ids", :filter_ids),
|
80
81
|
Option.new(nil, 'scenario-tags=TAGS', '', String, "Filter scenarios by tags", :filter_tags),
|
@@ -222,6 +223,10 @@ class LanguageConfigParser
|
|
222
223
|
context[:package] = @options.package unless @options.package.nil?
|
223
224
|
context[:framework] = @options.framework unless @options.framework.nil?
|
224
225
|
|
226
|
+
unless @options.overriden_templates.nil? || @options.overriden_templates.empty?
|
227
|
+
context[:overriden_templates] = @options.overriden_templates
|
228
|
+
end
|
229
|
+
|
225
230
|
@config[group].each {|param, value| context[param.to_sym] = value }
|
226
231
|
context
|
227
232
|
end
|
@@ -44,7 +44,12 @@ module Hiptest
|
|
44
44
|
folders << "#{@context[:language]}/#{@context[:framework]}"
|
45
45
|
end
|
46
46
|
folders << [@context[:language], 'common']
|
47
|
-
folders.flatten.map {|path| "#{hiptest_publisher_path}/lib/templates/#{path}"}
|
47
|
+
folders = folders.flatten.map {|path| "#{hiptest_publisher_path}/lib/templates/#{path}"}
|
48
|
+
|
49
|
+
if @context.has_key?(:overriden_templates)
|
50
|
+
folders = folders.insert(0, @context[:overriden_templates])
|
51
|
+
end
|
52
|
+
return folders
|
48
53
|
end
|
49
54
|
|
50
55
|
def register_partials()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hiptest-publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiptest R&D
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|