hiptest-publisher 1.5.1 → 1.6.0

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: 1aa104a9ee1a8bc2690e17c56b1a5764d73eab16
4
- data.tar.gz: b36e10189ca515e764d393f8ca4ade4577a3e4d6
3
+ metadata.gz: 33dc8b9d9791aae7b2dfa457835cf7326195d90b
4
+ data.tar.gz: bb093c969cf3f433476e954484e4f98119d85099
5
5
  SHA512:
6
- metadata.gz: 04e5648e7cc778fb97eb947501e808609e5324bb88475fecc244e722aab3bb6fa384e98ad3c530127833240f4157eeb125a285167f2d61d67a42140173deca91
7
- data.tar.gz: 278f215d4773e748649b945f8468a8a18f17f6d9608c45caebf6a3c7fc0dd35b9e0d9078fc79c827a6902ce112280f13ba1ea38723e5b65540d7ca6fb1bf1598
6
+ metadata.gz: 6572cda1eecac03833689e658782292018a93161f85c3a444878d2dc3f69078492033a37632ee0b36c37754d198cea3cde462c2c350e7f1c3425f5074dad3a79
7
+ data.tar.gz: 3486f08c2eb82a6b4d436a4738915077e753666dfbd29e5b3998bada7db2604a3f2e4d0fac6baa4f79a20ce8a3dc74deff0c8c4fd766e4d71b909a5a62015886
data/README.md CHANGED
@@ -104,6 +104,7 @@ Specific options:
104
104
  --test-run-id=ID Export data from a test run identified by its id
105
105
  --test-run-name=NAME Export data from a test run identified by its name
106
106
  --only=CATEGORIES Restrict export to given file categories (--only=list to list them)
107
+ --without=CATEGORIES Exclude file categories from import (--only=list to list them)
107
108
  -x, --xml-file=PROJECT_XML XML file to use instead of fetching it from Hiptest
108
109
  --tests-only (deprecated) alias for --only=tests (default: false)
109
110
  --actionwords-only (deprecated) alias for --only=actionwords (default: false)
@@ -117,7 +118,8 @@ Specific options:
117
118
  --show-actionwords-definition-changed
118
119
  Output action words for which definition changed (default: false)
119
120
  --with-folders Use folders hierarchy to export files in respective directories (default: false)
120
- --split-scenarios Export each scenario in a single file (except for Gherkin based languages) (default: false)
121
+ --empty-folders Export empty folders (default: false)
122
+ --split-scenarios Export each scenario in a single file (except for Gherkin based languages) (default: false)
121
123
  --leafless-export Use only last level action word (default: false)
122
124
  -s, --site=SITE Site to fetch from (default: https://hiptest.net)
123
125
  -p, --push=FILE.TAP Push a results file to the server
@@ -126,12 +128,15 @@ Specific options:
126
128
  --[no-]uids Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back) (default: true)
127
129
  --keep-filenames Keep the same name as in Hiptest for the test files (note: may cause encoding issues) (default: false)
128
130
  --keep-foldernames Keep the same name as in Hiptest for the folders (note: may cause encoding issues) (default: false)
129
- --filter-on-scenario-ids Filter on scenario ids (use commas to separate ids when fetching multiple scenarios)
130
- --filter-on-folder-ids Filter on folder ids (use commas to separate ids when fetching multiple folders)
131
- --filter-on-scenario-name Filter on scenario name (only one name is accepted)
132
- --filter-on-folder-name Filter on folder name (only one name is accepted)
133
- --filter-on-tags Filter on scenarios and folder tags (use commas to separate tags when using multiple tags)
131
+ --filter-on-scenario-ids=IDS Filter on scenario ids (use commas to separate ids when fetching multiple scenarios)
132
+ --filter-on-folder-ids=IDS Filter on folder ids (use commas to separate ids when fetching multiple folders)
133
+ --filter-on-scenario-name=NAME
134
+ Filter on scenario name (only one name is accepted)
135
+ --filter-on-folder-name=NAME Filter on folder name (only one name is accepted)
136
+ --filter-on-tags=TAGS Filter on scenarios and folder tags (use commas to separate tags when using multiple tags)
134
137
  --filter-on-status=STATUS Filter on test status in last build (use in conjunction with a test run)
138
+ --not-recursive Used in conjunction with filter-on-folder-ids or filter-on-folder-name: only exports those folders, not their children (default: false)
139
+ --check-version Check if a new release of hiptest-publisher is available (default: false)
135
140
  -v, --verbose Run verbosely (default: false)
136
141
  -H, --languages-help Show languages and framework options
137
142
  -h, --help Show this message
@@ -210,6 +210,7 @@ class OptionsParser
210
210
  Option.new(nil, 'show-actionwords-signature-changed', false, nil, "Output signatures of action words for which signature changed", :aw_signature_changed),
211
211
  Option.new(nil, 'show-actionwords-definition-changed', false, nil, "Output action words for which definition changed", :aw_definition_changed),
212
212
  Option.new(nil, 'with-folders', false, nil, "Use folders hierarchy to export files in respective directories", :with_folders),
213
+ Option.new(nil, 'empty-folders', false, nil, "Export empty folders", :empty_folders),
213
214
  Option.new(nil, 'split-scenarios', false, nil, "Export each scenario in a single file (except for Gherkin based languages)", :split_scenarios),
214
215
  Option.new(nil, 'leafless-export', false, nil, "Use only last level action word", :leafless_export),
215
216
  Option.new('s', 'site=SITE', 'https://hiptest.net', String, "Site to fetch from", :site),
@@ -585,7 +586,12 @@ class LanguageGroupConfig
585
586
  end
586
587
 
587
588
  def get_folder_nodes(project)
588
- project.children[:test_plan].children[:folders].select {|folder| folder.children[:scenarios].length > 0}
589
+ folders = project.children[:test_plan].children[:folders]
590
+ unless @user_params.empty_folders
591
+ folders.select {|folder| folder.children[:scenarios].length > 0}
592
+ else
593
+ folders
594
+ end
589
595
  end
590
596
 
591
597
  def normalized_dirname(name)
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: 1.5.1
4
+ version: 1.6.0
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: 2017-08-10 00:00:00.000000000 Z
11
+ date: 2017-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -622,7 +622,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
622
622
  version: '0'
623
623
  requirements: []
624
624
  rubyforge_project:
625
- rubygems_version: 2.6.8
625
+ rubygems_version: 2.4.8
626
626
  signing_key:
627
627
  specification_version: 4
628
628
  summary: Export your tests from Hiptest into executable tests.