rspec_trunk_flaky_tests 0.7.10.pre.alpha.1-x86_64-linux → 0.7.10.pre.beta.2-x86_64-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19f58fd39cda6223e9b7d4ec15791a0efc60a77f3033d3c3137f6f4d4d8a9bcb
4
- data.tar.gz: fae77d4076e3cb294e9965226d9a85ba1ba533c441c6b3fae70b280ba20a891c
3
+ metadata.gz: 8c8b058fef2eab07c33160a839ac5793ab63d6b6a6c2bfd9d66f55b97e6b3bd0
4
+ data.tar.gz: beacdf1aef74b8947fc1b1109fcb72d309dfc1fc1f2cb941b7e8c5e98b4b876d
5
5
  SHA512:
6
- metadata.gz: 0ce69a7c162fe93a7893116bf97ee971060105b4db50678b326989418ec18019b028c0ca02210c41f3c2b04052facf28a1f28de56e2c095cb528d1ba02482f9a
7
- data.tar.gz: d0c3c636446c125c575ff4bf79b53cd0ce407b2d9c0f6d3f73ac7722ad5606b74dd991bdb8a0688b6c2f9d81cbfc54ce25365009a5e71e28ac5e8a9dd8061d8d
6
+ metadata.gz: 12127af4f6f0635f5a71496eaeab29ef734c34ad7ed8819ea8ad87bcc4cce10548e5a1064bbf16119871fbbca6dacf3de9e80721ea134d6ab97ca2e38fd71be6
7
+ data.tar.gz: 4a43d9d4b552e34fea7bd3a05a8ad9ba0a670dd37d7899305afecb8c41075ce3a8391a1f31d0172e346582e94af1e6c4a49a46a27a9820e93d3c783ac4423bd2
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -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/Naming/AccessorMethodName,rubocop/Metrics/MethodLength,rubocop/Metrics/AbcSize)
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,21 +139,26 @@ class TrunkAnalyticsListener
139
139
  add_test_case(notification.example)
140
140
  end
141
141
 
142
- # trunk-ignore(rubocop/Metrics/CyclomaticComplexity,rubocop/Metrics/AbcSize)
142
+ # trunk-ignore(rubocop/Metrics/MethodLength)
143
143
  def close(_notification)
144
- published = @testreport.publish
145
- if published && !ENV['TRUNK_LOCAL_UPLOAD_DIR']
146
- puts 'Flaky tests report upload complete'.green
147
- elsif !published && !ENV['TRUNK_LOCAL_UPLOAD_DIR']
148
- puts 'Failed to publish flaky tests report'.red
149
- elsif published && ENV['TRUNK_LOCAL_UPLOAD_DIR']
150
- puts 'Local Flaky tests report generated'.green
151
- elsif !published && ENV['TRUNK_LOCAL_UPLOAD_DIR']
152
- puts 'Failed to generate local flaky tests report'.red
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
153
158
  end
154
159
  end
155
160
 
156
- # trunk-ignore(rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength,rubocop/Metrics/CyclomaticComplexity)
161
+ # trunk-ignore(rubocop/Metrics/CyclomaticComplexity,rubocop/Metrics/AbcSize,rubocop/Metrics/MethodLength)
157
162
  def add_test_case(example)
158
163
  failure_message = example.exception.to_s if example.exception
159
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.alpha.1
4
+ version: 0.7.10.pre.beta.2
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Trunk Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-01 00:00:00.000000000 Z
11
+ date: 2025-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core