rspec_trunk_flaky_tests 0.7.8.pre.beta.1-arm64-darwin → 0.7.10.pre.alpha.0-arm64-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 +8 -2
- 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: d4a2722db58b1a3889916bd1626c9f63b4aa1ac335c31731da39331b1de78f93
|
4
|
+
data.tar.gz: e188b75e07b0770b12c2f4c0cd017798cdf2033b18ba2f5d8243d453ac4d60c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17b674ca8092b92b63af273ef3c82d5376d9fb1f32d1898eee3ca8443c1254f52330e240a40106a613a902f0e47ef15df00c3b89c973edc9c60b2e8226256eba
|
7
|
+
data.tar.gz: 9c519d54e9174c65e145ea94bfffe1e3a6ac834b09c9aa32a8df36889edd32a99318267506fd2c2b261f1f0f2051b558c4c932770cc4ecc167a8b1ba82e967f5
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/trunk_spec_helper.rb
CHANGED
@@ -47,6 +47,7 @@ module RSpec
|
|
47
47
|
# decide if we want to fail the test or not
|
48
48
|
# trunk-ignore(rubocop/Naming/AccessorMethodName,rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
|
49
49
|
def set_exception(exception)
|
50
|
+
return set_exception_core(exception) if metadata[:pending]
|
50
51
|
return set_exception_core(exception) if trunk_disabled
|
51
52
|
return set_exception_core(exception) if metadata[:retry_attempts]&.positive?
|
52
53
|
|
@@ -139,10 +140,15 @@ class TrunkAnalyticsListener
|
|
139
140
|
end
|
140
141
|
|
141
142
|
def close(_notification)
|
142
|
-
|
143
|
+
published = @testreport.publish
|
144
|
+
if published && !ENV['TRUNK_LOCAL_UPLOAD_DIR']
|
143
145
|
puts 'Flaky tests report upload complete'.green
|
144
|
-
|
146
|
+
elsif !published && !ENV['TRUNK_LOCAL_UPLOAD_DIR']
|
145
147
|
puts 'Failed to publish flaky tests report'.red
|
148
|
+
elsif published && ENV['TRUNK_LOCAL_UPLOAD_DIR']
|
149
|
+
puts 'Local Flaky tests report generated'.green
|
150
|
+
elsif !published && ENV['TRUNK_LOCAL_UPLOAD_DIR']
|
151
|
+
puts 'Failed to generate local flaky tests report'.red
|
146
152
|
end
|
147
153
|
end
|
148
154
|
|
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.
|
4
|
+
version: 0.7.10.pre.alpha.0
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Trunk Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|