qa_at_migration 1.1.0 → 1.2.0
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/qa_at_migration.rb +1 -1
- data/lib/qa_at_migration/generator.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63bcec780b2d5d37a6a1d3e9ab2d4669ed5fcb53fcd34101ab9afbc2e73584cc
|
4
|
+
data.tar.gz: f8a6fc6677b01605c5101e18d0675ce49f9f595f0d0ad628ec4653aefad6edbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db979a76aebaaa6cfeacc3ec7af088e217fc8183c96f8839f1d2ce9c5b93a4cd9b4a38e15d6b894a495b16bca40ddd2bc9f78535c9d4002d8b14bd043c91ed68
|
7
|
+
data.tar.gz: 062efd700aba96e2c58de2e869d67fabb6da7bd1d9a8d80a8d071bbd15184a261d644f905b2625b1f8da4c90ba4eb1b79637beaf6714b052b00462b11ce8f1e5
|
data/lib/qa_at_migration.rb
CHANGED
@@ -8,7 +8,7 @@ require 'qa_at_migration/generator'
|
|
8
8
|
|
9
9
|
module QaAtMigration
|
10
10
|
class ThorCommands < Thor
|
11
|
-
option :sourcepath, :aliases => "-s", :required =>
|
11
|
+
option :sourcepath, :aliases => "-s", :required => false, :banner => '</path/to/project>, current path if no sourcepath is provided'
|
12
12
|
option :targetpath, :aliases => "-t", :required => false, :banner => '</path/to/generate>, current path if no targetpath is provided'
|
13
13
|
desc "generate_csv [<OUTPUT_FILENAME>.csv]",
|
14
14
|
"The default value will be 'master.csv' if no OUTPUT_FILENAME is provided"
|
@@ -6,7 +6,7 @@ module QaAtMigration
|
|
6
6
|
CSV_HEADERS = %w(Title Description Preconditions Steps Status).freeze
|
7
7
|
|
8
8
|
def generate sourcepath, targetpath, output_filename = 'master.csv'
|
9
|
-
@sourcepath = sourcepath
|
9
|
+
@sourcepath = sourcepath ? sourcepath : Dir.pwd
|
10
10
|
output_path_filename = targetpath ? File.join(targetpath, output_filename) : output_filename
|
11
11
|
CSV.open(output_path_filename, 'w', headers: CSV_HEADERS, write_headers: true) do |csv|
|
12
12
|
paths.each { |path| csv << TestFile.new(path).content }
|
@@ -16,6 +16,7 @@ module QaAtMigration
|
|
16
16
|
private
|
17
17
|
|
18
18
|
def paths
|
19
|
+
p "@sourcepath = #{@sourcepath}"
|
19
20
|
Dir.glob(File.join(@sourcepath, TEST_FILE_PATTERN), File::FNM_CASEFOLD).reject do |filename|
|
20
21
|
File.directory?(filename) || File.basename(filename).start_with?(*ignored_files)
|
21
22
|
end
|