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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b1cef7a03b192f73a60fc987bd01b58e4c9d060
4
- data.tar.gz: 325f1824be9fd8fedad8c227ecbc5efa6bc77ea0
3
+ metadata.gz: a94ae557d9bf6320ee52ab202c06fb5bb79c63da
4
+ data.tar.gz: 7ec8ad85516371c5cd6145e59e54c82d0716a2dc
5
5
  SHA512:
6
- metadata.gz: 22519cb1f69c68496537777051ef9d6e09b50cdbc3c6b25be60bec6e6f1450ac4e92b8cf77d281bb9078d1703534eef57d759f62fda94bfa5d2d3c4b467260dc
7
- data.tar.gz: 87dec51923576b96d3242e89d14e3181ba3ff9d6b18fdc530841f89179d4f2dc2a10c98f319c355feef04ecd2bb3c18e230dd0a5db009140549d094165f44f15
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.1
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-01-29 00:00:00.000000000 Z
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize