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 +4 -4
- data/lib/feature_map/cli.rb +8 -2
- data/lib/feature_map/private/docs/index.html +104 -84
- data/lib/feature_map/private.rb +4 -4
- data/lib/feature_map.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da72179134e412ae870b9e28e3642fce5968f893d43a1ccf6bdf9ebb0c4f955c
|
4
|
+
data.tar.gz: '0825071345a6e6589dcd331f01f5fb1f31c20824f3dadef6fd28330e686499f6'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e723bc85047a19677f535ee7f569454101618f76a677338ae2f78a9eb5114726713d46a85a0b1bd7ba87a020d629d373e7b8e9b0d5b34566d607d2594a05058
|
7
|
+
data.tar.gz: 558061825589dc8a45d6a61c6a59843dbf9a657ef7b5484704f036d950aaf7219fc71cd5e4ec403735e9eaa5a9865169932c441f1e0ff29ada1ee0e210c9a3a3
|
data/lib/feature_map/cli.rb
CHANGED
@@ -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
|
-
|
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
|
|