rspec_tap_formatter 0.1.0 → 0.3.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/Gemfile.lock +1 -1
- data/lib/rspec_tap_formatter.rb +5 -5
- 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: 7f6c64ffb35b4fba92ccdee4ee9eff4f9528ba1cb83e64c5e25a3115cae86011
|
4
|
+
data.tar.gz: 8cc139bb2764d1d51315587b40174167879a7fe7ea6225688701a2c749ce2c43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6664e3470e69738a4ae5fa7f1f0abf2055080918a2d684da4d13f662ff8e442c269a41e1cd77d224696be1b10c7a46b9603b0c764323baf5c02dc3b3baaedb2
|
7
|
+
data.tar.gz: 71fad40b25c92be86f68dfdfab1f2aea658e48908bd43ac6e2d2fde55d108575df75b36dbecb940a68e6da1968f64c06f3cdf270eb5abc58b5721b20a5dbdfe3
|
data/Gemfile.lock
CHANGED
data/lib/rspec_tap_formatter.rb
CHANGED
@@ -2,7 +2,7 @@ require "rspec/core"
|
|
2
2
|
require "rspec/core/formatters/base_formatter"
|
3
3
|
|
4
4
|
class RspecTapFormatter < RSpec::Core::Formatters::BaseFormatter
|
5
|
-
VERSION = "0.
|
5
|
+
VERSION = "0.3.0"
|
6
6
|
# Specification found: https://testanything.org/tap-version-13-specification.html
|
7
7
|
#
|
8
8
|
# This registers the notifications this formatter supports, and tells
|
@@ -15,8 +15,8 @@ class RspecTapFormatter < RSpec::Core::Formatters::BaseFormatter
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def start(notification)
|
18
|
-
@output << "
|
19
|
-
@output << "
|
18
|
+
@output << "\rTAP version 13\n"
|
19
|
+
@output << "\r1..#{notification.count}\n"
|
20
20
|
end
|
21
21
|
|
22
22
|
def example_started(notification)
|
@@ -24,10 +24,10 @@ class RspecTapFormatter < RSpec::Core::Formatters::BaseFormatter
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def example_passed(example_notification)
|
27
|
-
@output << "
|
27
|
+
@output << "\rok #{@count}\n"
|
28
28
|
end
|
29
29
|
|
30
30
|
def example_failed(failed_example_notification)
|
31
|
-
@output << "
|
31
|
+
@output << "\rnot ok #{@count} - #{failed_example_notification.message_lines.join(' ')}\n"
|
32
32
|
end
|
33
33
|
end
|