feature_map 1.2.1 → 1.2.2

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
  SHA256:
3
- metadata.gz: 278f81ac986fb56714e9159ff94e5cb98c1bbca774486735c32cd837db13965d
4
- data.tar.gz: 73b6c34564934df5f1febbfd7e5ec57d97142f4ff624b38294eed829090739c0
3
+ metadata.gz: da72179134e412ae870b9e28e3642fce5968f893d43a1ccf6bdf9ebb0c4f955c
4
+ data.tar.gz: '0825071345a6e6589dcd331f01f5fb1f31c20824f3dadef6fd28330e686499f6'
5
5
  SHA512:
6
- metadata.gz: 5e4cd3dad27e16983f4cd4470c1d7c0f65dffbc630d4155cbf8994869a52469c7455d015066be951d0f6e39929277f17d68bfc254c42f6227d1446f060a27371
7
- data.tar.gz: 531ed4a45bea00c64ff62733167fd6ea3d9f8f16342ce9f881e75ba935970a299204587bc18e38ec52cc20517595e7e79fc58a5a988a1e8857337a788b718c11
6
+ metadata.gz: 8e723bc85047a19677f535ee7f569454101618f76a677338ae2f78a9eb5114726713d46a85a0b1bd7ba87a020d629d373e7b8e9b0d5b34566d607d2594a05058
7
+ data.tar.gz: 558061825589dc8a45d6a61c6a59843dbf9a657ef7b5484704f036d950aaf7219fc71cd5e4ec403735e9eaa5a9865169932c441f1e0ff29ada1ee0e210c9a3a3
@@ -189,6 +189,7 @@ module FeatureMap
189
189
  Usage: bin/featuremap test_pyramid [unit_path] [integration_path] [regression_path] [regression_assignments_path].
190
190
  Paths should point to files containing json-formatted rspec test summaries.
191
191
  These can be generated via rspec's `-f j` flag.
192
+ Regression test summary and assignments file path are optional.
192
193
  MSG
193
194
 
194
195
  opts.on('--help', 'Shows this prompt') do
@@ -201,9 +202,14 @@ module FeatureMap
201
202
  non_flag_args = argv.reject { |arg| arg.start_with?('--') }
202
203
 
203
204
  file_paths = non_flag_args.first(4)
204
- raise 'Please specify all of [unit_path] [integration_path] [regression_path] [regression_assignments_path]' if file_paths.compact.size != 4
205
+ if file_paths.compact.size == 2
206
+ unit_path, integration_path = file_paths
207
+ elsif file_paths.compact.size == 4
208
+ unit_path, integration_path, regression_path, regression_assignments_path = file_paths
209
+ else
210
+ raise 'Please specify at least the [unit_path] and [integration_path] arguments. If regression test details are provided both the [regression_path] and [regression_assignments_path] arguments must be populated.'
211
+ end
205
212
 
206
- unit_path, integration_path, regression_path, regression_assignments_path = file_paths
207
213
  FeatureMap.generate_test_pyramid!(unit_path, integration_path, regression_path, regression_assignments_path)
208
214
  end
209
215