rspec_trunk_flaky_tests 0.7.10.pre.alpha.0-x86_64-darwin → 0.7.10.pre.beta.2-x86_64-darwin
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/lib/context_ruby/3.0/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.1/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.2/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.3/context_ruby.bundle +0 -0
- data/lib/context_ruby/3.4/context_ruby.bundle +0 -0
- data/lib/trunk_spec_helper.rb +17 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1225d2a3fc2399eab8756c7ea44577cff64e5f269f5232d56d0fd3c5c327db70
|
4
|
+
data.tar.gz: 6a682c13c5f68eda331264eebc9c236fc35bba84e3cc243e4ec75ac2b09cccaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d101b35e9eb1ce2696460017c6fb80a7639b96fa91e34a573aec9a65343a7c3f7142f3027f5c1b905ca97a18dd8c44004eb4084592c0f3a55a638fa34e19eb3f
|
7
|
+
data.tar.gz: b970072f073ae497bb5bf9ecab2f8e3faf2d0cf55204a0e608b9e620b40700c1c741a08c4166d1d2f071a35eab2d9c57e27cfaf0a02f4f12f37bf6ea0f2b9d54
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/trunk_spec_helper.rb
CHANGED
@@ -45,7 +45,7 @@ module RSpec
|
|
45
45
|
# RSpec uses the existance of an exception to determine if the test failed
|
46
46
|
# We need to override this to allow us to capture the exception and then
|
47
47
|
# decide if we want to fail the test or not
|
48
|
-
# trunk-ignore(rubocop/
|
48
|
+
# trunk-ignore(rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength,rubocop/Naming/AccessorMethodName)
|
49
49
|
def set_exception(exception)
|
50
50
|
return set_exception_core(exception) if metadata[:pending]
|
51
51
|
return set_exception_core(exception) if trunk_disabled
|
@@ -139,20 +139,26 @@ class TrunkAnalyticsListener
|
|
139
139
|
add_test_case(notification.example)
|
140
140
|
end
|
141
141
|
|
142
|
+
# trunk-ignore(rubocop/Metrics/MethodLength)
|
142
143
|
def close(_notification)
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
144
|
+
if ENV['TRUNK_LOCAL_UPLOAD_DIR']
|
145
|
+
saved = @testreport.try_save(ENV['TRUNK_LOCAL_UPLOAD_DIR'])
|
146
|
+
if saved
|
147
|
+
puts 'Local Flaky tests report generated'.green
|
148
|
+
else
|
149
|
+
puts 'Failed to generate local flaky tests report'.red
|
150
|
+
end
|
151
|
+
else
|
152
|
+
published = @testreport.publish
|
153
|
+
if published
|
154
|
+
puts 'Flaky tests report upload complete'.green
|
155
|
+
else
|
156
|
+
puts 'Failed to publish flaky tests report'.red
|
157
|
+
end
|
152
158
|
end
|
153
159
|
end
|
154
160
|
|
155
|
-
# trunk-ignore(rubocop/Metrics/
|
161
|
+
# trunk-ignore(rubocop/Metrics/CyclomaticComplexity,rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength)
|
156
162
|
def add_test_case(example)
|
157
163
|
failure_message = example.exception.to_s if example.exception
|
158
164
|
failure_message = example.metadata[:quarantined_exception].to_s if example.metadata[:quarantined_exception]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_trunk_flaky_tests
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.10.pre.
|
4
|
+
version: 0.7.10.pre.beta.2
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Trunk Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-05-
|
11
|
+
date: 2025-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|