crtu 0.2.4.2 → 0.2.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/crtu/version.rb +1 -1
- data/lib/tasks/cucumber_tasks.rake +2 -21
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81cb94afede8874152b32509a2dca58322455ea0
|
4
|
+
data.tar.gz: f3aa06a1c8b331feae685845e9c74a1aa7e75c2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d50ea822ceee55db7db66db232984f288a76f48fbcb0532cd422f193e415537577497ce52d8b5859d82a5c5a00f0125345b9701d0b72ed0642f8fc66b6b5bb77
|
7
|
+
data.tar.gz: 5aea136f0062bcc1e9acddfa743a6402d027b331e6ffbb706bbf60a89fb6b2518f9532abf4f8710a50fbda41d17d3a07949fb318abf8f75601303d5f41024154
|
data/lib/crtu/version.rb
CHANGED
@@ -69,30 +69,11 @@ namespace :features do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
|
72
|
-
desc 'Run specific feature file'
|
72
|
+
desc 'Run specific feature file by name'
|
73
73
|
task :run_cucumber_feature, [:feature_name] do |t,args|
|
74
|
-
if File.extname(args[:feature_name].to_s).empty?
|
75
|
-
filename = "#{args[:feature_name]}.feature"
|
76
|
-
else
|
77
|
-
filename = :feature_name.to_s
|
78
|
-
end
|
79
|
-
|
80
|
-
#if we only give filename, no paths behind
|
81
|
-
if File.dirname(filename).empty?
|
82
|
-
filepath = File.join(Dir.pwd, 'features', filename)
|
83
|
-
else
|
84
|
-
# we shoud extract each pathname and process it
|
85
|
-
filefolders = File.dirname(filename).split(File::SEPARATOR)
|
86
|
-
filepath = File.join(Dir.pwd, 'features')
|
87
|
-
|
88
|
-
filefolders.each do |folder|
|
89
|
-
filepath = File.join(filepath,folder)
|
90
|
-
end
|
91
|
-
filepath = File.join(filepath, File.basename(filename))
|
92
|
-
end
|
93
74
|
|
94
75
|
Cucumber::Rake::Task.new(t) do |c|
|
95
|
-
c.cucumber_opts = "
|
76
|
+
c.cucumber_opts = "features --name #{args[:feature_name]} --format progress --out reports/progress.out --format html --out reports/report.html --format json --out reports/cucumber.json"
|
96
77
|
end
|
97
78
|
|
98
79
|
|