selective-ruby-minitest 0.1.0 → 0.1.2
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e00ea8147c671869afa4329b2e5bb1bfaec174832ae2352cb4b97a61de55af9b
|
|
4
|
+
data.tar.gz: a4f63aba2657952326b2841e300d24b8b038272bfe98ce2c71d7dd7c537b0d63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c13e9e68246461b94978341a545a000609ce507d2a94b53cb9c5d72a2550d04ba13bf1327dfa6e3cb0171cd272db72a2169d4f764c625268441adf9fe712b5b1
|
|
7
|
+
data.tar.gz: 8f1ba321cf5508dd9405c8daafafab113afb684ae7809fbf1cba1ff7c8367b6fa893d6bf7098f79091bfac9f254363ddf26119c258fb1a2aa64b6fd382b27adc
|
|
@@ -49,15 +49,17 @@ module Selective
|
|
|
49
49
|
end
|
|
50
50
|
|
|
51
51
|
def remove_test_case_result(test_case_id)
|
|
52
|
-
|
|
52
|
+
test = test_map[test_case_id]
|
|
53
|
+
return unless test
|
|
53
54
|
|
|
54
55
|
result = summary_reporter.results.detect do |r|
|
|
55
|
-
r.source_location.first.gsub(root_path, "") == file_path &&
|
|
56
|
-
r.name == method_name
|
|
56
|
+
r.source_location.first.gsub(root_path, "") == test[:file_path] &&
|
|
57
|
+
r.name == test[:method_name]
|
|
57
58
|
end
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
return unless result
|
|
60
61
|
|
|
62
|
+
result.failures = []
|
|
61
63
|
summary_reporter.results.delete(result)
|
|
62
64
|
end
|
|
63
65
|
|
|
@@ -66,7 +68,7 @@ module Selective
|
|
|
66
68
|
end
|
|
67
69
|
|
|
68
70
|
def exit_status
|
|
69
|
-
failures.length.zero? ? 0 : 1
|
|
71
|
+
failures.reject(&:skipped?).length.zero? ? 0 : 1
|
|
70
72
|
end
|
|
71
73
|
|
|
72
74
|
def finish
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: selective-ruby-minitest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin Wood
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-03-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: zeitwerk
|