rspec_tap_formatter 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- 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: db17ff070fe335dca2f868e0814e282edc87e2b6a4bd119425ca5bdc9722fa24
|
4
|
+
data.tar.gz: 7a688cc8f125e068d40396087cc3a0f0ecb6c317caaf953a59b190fe6be84ca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7b9bbbf09210e0adea2d789b6d7d1129973982e90e0bd6ad086996b7720f254cd3387ae1d5e45bc42f8b7eca2ea7a9fccdefb24378c7f87fc34e2212592d383
|
7
|
+
data.tar.gz: 68c3b7812cb4b61ef69efc7c1656b3eaa1e23355a78136bcbb2457cdb5d4920e6a5ac9c1dbad56a97786d4324902301ab65f3bf51ffdf6778fd00e62ba753019
|
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.4.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 << "TAP version 13\n"
|
19
|
+
@output << "1..#{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 << "ok #{@count}\n"
|
28
28
|
end
|
29
29
|
|
30
30
|
def example_failed(failed_example_notification)
|
31
|
-
@output << "
|
31
|
+
@output << "not ok #{@count} - #{failed_example_notification.message_lines.join(' ')}\n"
|
32
32
|
end
|
33
33
|
end
|