taf 0.3.9 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb63f2071b93028017fb466d80db1c21bef8f468788f6b3df344b3f9ba00b8ef
4
- data.tar.gz: 8760a5584efe3a280b80f87886ce3e13511747f1226cf6501070529242b945d8
3
+ metadata.gz: 9e4461fc2745f3d0135a0005925069baf551d4b05c5e35aa8c22ae64c8f26b57
4
+ data.tar.gz: 572033f4fe158cb507b034613f2816ed10ab1c8c050f094702c8cb2de9c8b09b
5
5
  SHA512:
6
- metadata.gz: 96ca2091cfe212d6364c9b2da8ed5a3cdcd1f054a2ae4d600815fa49925c2a024a63fe8f4d596bb9c5dfc2d9da336b26d5b6c605c37903351c273019e939f3be
7
- data.tar.gz: 061a360b6a1a4fb0ebfbcc197b1eba9b1ce019891643709f115907a11a447e96797e2e47a65524830d66197f44a1669136977c97f9f6125a55321a994a75951a
6
+ metadata.gz: 3e874a6c78dd48b81d6b9cd741a810b79a669ea5bb5ec119a700da76f8cfeaf9077f0a1d231249682d9488756543e557b3daeb24da75b87acacadd07ef1d6b0d
7
+ data.tar.gz: 58460b01837bd31330c4e1d342ac73eabdf01d0fc434a21a3a16d2deec606b65fac6f4d51f9c161d6314081a6d924a2be7fc1ce100094889d4f009a785479f4d
@@ -42,7 +42,7 @@ module Taf
42
42
  def self.overall_test_summary(total_time, total_metrics)
43
43
  print_test_summary
44
44
 
45
- Taf::MyLog.log.info "Toatal Duration: #{total_time}"
45
+ Taf::MyLog.log.info "Total Duration: #{total_time}"
46
46
  Taf::MyLog.log.info "Total Tests Passed: #{total_metrics[0]}".green
47
47
  Taf::MyLog.log.info "Total Tests Failed: #{total_metrics[1]}".red
48
48
  Taf::MyLog.log.info "Total Tests Skipped: #{total_metrics[2]}".blue
@@ -42,23 +42,27 @@ module Taf
42
42
  total_steps = 0
43
43
  successes = 0
44
44
  failures = 0
45
+ skips = 0
45
46
  instance.tests.each do |filename, steps|
46
47
  file.write("# #{filename}\n")
47
48
  steps.each do |step|
48
49
  total_steps += 1
49
50
  if step.is_a?(Taf::TestSteps::SkipStep)
50
- outstr = "ok #{total_steps} #{step.description} # SKIP"
51
+ outstr = "ok #{total_steps} #{step.description} # SKIP"\
52
+ " - Step #{step.index} Test File: #{filename}"
53
+ skips += 1
51
54
  else
52
55
  if step.is_a?(Taf::TestSteps::SuccessStep)
53
- outstr = 'ok'
56
+ outstr = 'ok '
54
57
  successes += 1
55
58
  elsif step.is_a?(Taf::TestSteps::FailureStep)
56
- outstr = 'not ok'
59
+ outstr = 'not ok '
57
60
  failures += 1
58
61
  else
59
62
  outstr = '# test error'
60
63
  end
61
- outstr += " #{total_steps} #{step.description} - Step #{step.index}"
64
+ outstr += "#{total_steps} #{step.description} - Step #{step.index}"\
65
+ " Test File: #{filename}"
62
66
  end
63
67
 
64
68
  file.write(outstr + "\n")
@@ -68,6 +72,7 @@ module Taf
68
72
  file.write("# tests #{total_steps}\n")
69
73
  file.write("# pass #{successes}\n")
70
74
  file.write("# fail #{failures}\n")
75
+ file.write("# skip #{skips}\n")
71
76
  file.close
72
77
  end
73
78
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Taf
4
- VERSION = '0.3.9'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Perrett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler