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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 80e414c9443556d6ca0bf2495db50c4ace281c8e8495a1b55658e2dbfe629000
4
- data.tar.gz: 14c721b228cc16855b5248b69689d87f777573cfe5a9f7de83324b509b24efc0
3
+ metadata.gz: 3ce859b7b5c5f6135860a015e9669fc67d5db6f237c1d3b0671f961257d90a8f
4
+ data.tar.gz: 955d497645c3d49de0a9e72b05620753155850b7c93f98e8716c7da4ff81f8af
5
5
  SHA512:
6
- metadata.gz: f64dfb3906476c99e23000091ce7fe0e7b784bece1d07e0c37537389bfac0777e818b52cf063316be3dc6d4a4213fb4fbb9c899e3a890105e2089c3de5b24566
7
- data.tar.gz: 564c3914995361bd92ba4e05d1ef67f943f4bb680b2a8e10208b7f96716508e961e78f74fb2d387189d33d618b43227684e71eb6a8bd5b284f3b06303908e1b6
6
+ metadata.gz: 4239d182d22d575ce433553cc396ca395d7bf734665cd5a1dec73ec689279b3cdd95ed183fc7129f197081a74857e57ae4738050ca9c7f897df27796ebb28ae6
7
+ data.tar.gz: 9b38ffa862129f823cb40f4d42e1b8fbe7fa04c670f2b1aa1b3e6c87681b341b7423a34ca403b57fc665ab2879b4996d597ce67395bf01ec77a74f1bf80a3eac
@@ -2,7 +2,7 @@
2
2
  require 'assertthat-bdd'
3
3
  require 'optparse'
4
4
 
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.1'
6
6
 
7
7
  options = {}
8
8
  OptionParser.new do |opt|
@@ -2,7 +2,7 @@
2
2
  require 'assertthat-bdd'
3
3
  require 'optparse'
4
4
 
5
- VERSION = '0.0.1'
5
+ VERSION = '1.0.1'
6
6
 
7
7
  options = {}
8
8
  OptionParser.new do |opt|
@@ -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(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assertthat-bdd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glib Briia