assertthat-bdd 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/assertthat-bdd-features +1 -1
- data/bin/assertthat-bdd-report +1 -1
- data/lib/assertthat-bdd.rb +4 -0
- 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: 3ce859b7b5c5f6135860a015e9669fc67d5db6f237c1d3b0671f961257d90a8f
|
4
|
+
data.tar.gz: 955d497645c3d49de0a9e72b05620753155850b7c93f98e8716c7da4ff81f8af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4239d182d22d575ce433553cc396ca395d7bf734665cd5a1dec73ec689279b3cdd95ed183fc7129f197081a74857e57ae4738050ca9c7f897df27796ebb28ae6
|
7
|
+
data.tar.gz: 9b38ffa862129f823cb40f4d42e1b8fbe7fa04c670f2b1aa1b3e6c87681b341b7423a34ca403b57fc665ab2879b4996d597ce67395bf01ec77a74f1bf80a3eac
|
data/bin/assertthat-bdd-features
CHANGED
data/bin/assertthat-bdd-report
CHANGED
data/lib/assertthat-bdd.rb
CHANGED
@@ -31,12 +31,15 @@ module AssertThatBDD
|
|
31
31
|
end
|
32
32
|
Dir.mkdir("#{outputFolder}") unless File.exists?("#{outputFolder}")
|
33
33
|
File.open("#{outputFolder}/features.zip", 'wb') {|f| f.write(contents) }
|
34
|
+
features_count = 0
|
34
35
|
Zip::File.open("#{outputFolder}/features.zip") do |zip_file|
|
35
36
|
zip_file.each do |entry|
|
37
|
+
features_count = features_count + 1
|
36
38
|
File.delete("#{outputFolder}#{entry.name}") if File.exists?("#{outputFolder}#{entry.name}")
|
37
39
|
entry.extract("#{outputFolder}#{entry.name}")
|
38
40
|
end
|
39
41
|
end
|
42
|
+
puts "[INFO] #{features_count} features downloaded"
|
40
43
|
File.delete("#{outputFolder}/features.zip")
|
41
44
|
end
|
42
45
|
end
|
@@ -45,6 +48,7 @@ module AssertThatBDD
|
|
45
48
|
def self.upload(accessKey: ENV['ASSERTTHAT_ACCESS_KEY'], secretKey: ENV['ASSERTTHAT_ACCESS_KEY'], projectId: nil, runName: 'Test run '+Time.now.strftime("%d %b %Y %H:%M:%S"), jsonReportFolder: './reports', jsonReportIncludePattern: '.*.json' )
|
46
49
|
url = "https://bdd.assertthat.com/rest/api/1/project/" + projectId + "/report"
|
47
50
|
files = Find.find(jsonReportFolder).grep(/#{jsonReportIncludePattern}/)
|
51
|
+
puts "[INFO] #{files.count} found matching parretn #{jsonReportIncludePattern}:"
|
48
52
|
runId = -1
|
49
53
|
files.each do |f|
|
50
54
|
request = RestClient::Request.new(
|