rspec-buildkite 0.1.5 → 0.1.7
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/README.md +1 -1
- data/lib/rspec/buildkite/annotation_formatter.rb +16 -12
- data/lib/rspec/buildkite/recolorizer.rb +2 -0
- data/lib/rspec/buildkite/version.rb +3 -1
- data/lib/rspec/buildkite.rb +2 -0
- metadata +6 -30
- checksums.yaml.gz.sig +0 -3
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c55c49470425b862360df7e5d1ac7ed5e3046b2a79db0f3eaa23b67ff42922bf
|
|
4
|
+
data.tar.gz: add6c7fee205920b7d7b5a1fbef998c839836600811e9432ec32dd06603e1504
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b04206eec3888860768f9550b8aedac0c3beba1ad0112b1018d09781a21a5b8792129dd320264747fa5b8fd71d98c4528006348bdaedde0d267925fce2b24fc7
|
|
7
|
+
data.tar.gz: 63bd8f5137aa05676da57f91509017b5f8b6c889daae25c0a8dc94f20a3f11807295b84cf300e0c6a4e9888e7248bf830ac9548b5d613bd45c2577b6dd28fa97
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Output [RSpec][rspec] failure messages as [Buildkite annotations][buildkite-annotations] as soon as they happen so you can fix them while your build finishes.
|
|
4
4
|
|
|
5
|
-
![A Buildkite build still in progress with an annotation showing an RSpec failure][screenshot]
|
|
5
|
+
[![A Buildkite build still in progress with an annotation showing an RSpec failure][screenshot]](https://buildkite.com/buildkite/rspec-buildkite)
|
|
6
6
|
|
|
7
7
|
[rspec]: http://rspec.info
|
|
8
8
|
[buildkite-annotations]: https://buildkite.com/docs/agent/v3/cli-annotate
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require "thread"
|
|
2
4
|
|
|
3
5
|
require "rspec/core"
|
|
@@ -27,7 +29,9 @@ module RSpec::Buildkite
|
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def example_failed(notification)
|
|
30
|
-
@queue.
|
|
32
|
+
return if @queue.nil? || RSpec.world.wants_to_quit
|
|
33
|
+
|
|
34
|
+
@queue.push(notification)
|
|
31
35
|
end
|
|
32
36
|
|
|
33
37
|
private
|
|
@@ -47,8 +51,8 @@ module RSpec::Buildkite
|
|
|
47
51
|
end
|
|
48
52
|
end
|
|
49
53
|
rescue
|
|
50
|
-
$stderr.puts "Warning: Couldn't create Buildkite annotations:\n"
|
|
51
|
-
" #{$!.to_s}\n"
|
|
54
|
+
$stderr.puts "Warning: Couldn't create Buildkite annotations:\n" +
|
|
55
|
+
" #{$!.to_s}\n" +
|
|
52
56
|
" #{$!.backtrace.join("\n ")}"
|
|
53
57
|
end
|
|
54
58
|
|
|
@@ -57,19 +61,19 @@ module RSpec::Buildkite
|
|
|
57
61
|
job_id = ENV["BUILDKITE_JOB_ID"].to_s
|
|
58
62
|
job_url = "#{build_url}##{job_id}"
|
|
59
63
|
|
|
60
|
-
%{<details>\n}
|
|
61
|
-
%{<summary>#{notification.description.encode(:xml => :text)}</summary>\n}
|
|
62
|
-
%{<pre class="term">#{Recolorizer.recolorize(notification.colorized_message_lines.join("\n").encode(:xml => :text))}</pre>\n}
|
|
63
|
-
format_rerun(notification)
|
|
64
|
-
%{<p>in <a href=#{job_url.encode(:xml => :attr)}>Job ##{job_id.encode(:xml => :text)}</a></p>\n}
|
|
65
|
-
%{</details>}
|
|
64
|
+
%{<details>\n} +
|
|
65
|
+
%{<summary>#{notification.description.encode(:xml => :text)}</summary>\n} +
|
|
66
|
+
%{<pre class="term">#{Recolorizer.recolorize(notification.colorized_message_lines.join("\n").encode(:xml => :text))}</pre>\n} +
|
|
67
|
+
format_rerun(notification) +
|
|
68
|
+
%{<p>in <a href=#{job_url.encode(:xml => :attr)}>Job ##{job_id.encode(:xml => :text)}</a></p>\n} +
|
|
69
|
+
%{</details>} +
|
|
66
70
|
%{\n\n\n}
|
|
67
71
|
end
|
|
68
72
|
|
|
69
73
|
def format_rerun(notification)
|
|
70
|
-
%{<pre class="term">}
|
|
71
|
-
%{<span class="term-fg31">rspec #{notification.example.location_rerun_argument.encode(:xml => :text)}</span>}
|
|
72
|
-
%{ <span class="term-fg36"># #{notification.example.full_description.encode(:xml => :text)}</span>}
|
|
74
|
+
%{<pre class="term">} +
|
|
75
|
+
%{<span class="term-fg31">rspec #{notification.example.location_rerun_argument.encode(:xml => :text)}</span>} +
|
|
76
|
+
%{ <span class="term-fg36"># #{notification.example.full_description.encode(:xml => :text)}</span>} +
|
|
73
77
|
%{</pre>\n}
|
|
74
78
|
end
|
|
75
79
|
end
|
data/lib/rspec/buildkite.rb
CHANGED
metadata
CHANGED
|
@@ -1,34 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-buildkite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Cochran
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
|
-
cert_chain:
|
|
11
|
-
-
|
|
12
|
-
-----BEGIN CERTIFICATE-----
|
|
13
|
-
MIIDKDCCAhCgAwIBAgIBCDANBgkqhkiG9w0BAQsFADA6MQ0wCwYDVQQDDARzajI2
|
|
14
|
-
MRQwEgYKCZImiZPyLGQBGRYEc2oyNjETMBEGCgmSJomT8ixkARkWA2NvbTAeFw0y
|
|
15
|
-
MTA0MjcwMzIxMjZaFw0yMjA0MjcwMzIxMjZaMDo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XoCwfE6bWgQU=
|
|
30
|
-
-----END CERTIFICATE-----
|
|
31
|
-
date: 2021-06-01 00:00:00.000000000 Z
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
32
11
|
dependencies:
|
|
33
12
|
- !ruby/object:Gem::Dependency
|
|
34
13
|
name: rspec-core
|
|
@@ -50,14 +29,14 @@ dependencies:
|
|
|
50
29
|
requirements:
|
|
51
30
|
- - "~>"
|
|
52
31
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '
|
|
32
|
+
version: '2.3'
|
|
54
33
|
type: :development
|
|
55
34
|
prerelease: false
|
|
56
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
36
|
requirements:
|
|
58
37
|
- - "~>"
|
|
59
38
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
39
|
+
version: '2.3'
|
|
61
40
|
- !ruby/object:Gem::Dependency
|
|
62
41
|
name: rake
|
|
63
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,7 +93,6 @@ dependencies:
|
|
|
114
93
|
- - ">="
|
|
115
94
|
- !ruby/object:Gem::Version
|
|
116
95
|
version: '0'
|
|
117
|
-
description:
|
|
118
96
|
email: sj26@sj26.com
|
|
119
97
|
executables: []
|
|
120
98
|
extensions: []
|
|
@@ -130,7 +108,6 @@ homepage: https://github.com/buildkite/rspec-buildkite
|
|
|
130
108
|
licenses:
|
|
131
109
|
- MIT
|
|
132
110
|
metadata: {}
|
|
133
|
-
post_install_message:
|
|
134
111
|
rdoc_options: []
|
|
135
112
|
require_paths:
|
|
136
113
|
- lib
|
|
@@ -145,8 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
145
122
|
- !ruby/object:Gem::Version
|
|
146
123
|
version: '0'
|
|
147
124
|
requirements: []
|
|
148
|
-
rubygems_version:
|
|
149
|
-
signing_key:
|
|
125
|
+
rubygems_version: 4.0.4
|
|
150
126
|
specification_version: 4
|
|
151
127
|
summary: RSpec formatter creating Buildkite annotations for failures
|
|
152
128
|
test_files: []
|
checksums.yaml.gz.sig
DELETED
data.tar.gz.sig
DELETED
|
Binary file
|
metadata.gz.sig
DELETED
|
Binary file
|