test-unit 3.6.4 → 3.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +6 -0
- data/doc/text/news.md +15 -0
- data/lib/test/unit/sub-test-result.rb +8 -0
- data/lib/test/unit/test-suite-runner.rb +1 -1
- data/lib/test/unit/test-suite-thread-runner.rb +6 -6
- data/lib/test/unit/testcase.rb +1 -1
- data/lib/test/unit/testsuite.rb +3 -3
- data/lib/test/unit/ui/testrunnermediator.rb +1 -1
- data/lib/test/unit/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89848098de31dc4b7c6164ea0d473f357c957adfb7247eb49187580dab042d6a
|
4
|
+
data.tar.gz: 7b5d8c3b892a77d069e708d39cd779dae9f7845705386c5fe6c4e58a44d8b6af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253a5aed19a3759d6d4ceec439d5e696910187a8bfae52cea34cb000ea64b2728a246703cfdcfc4f09fa744f7014486c1d9d83e32620d2c37b80972c0cceb31c
|
7
|
+
data.tar.gz: d3bae342534e1bbdc5af82d539c0cb8627f3e701eb60ed58b6199d8c67bc280bfbedad0470e91e7e3d9bf050dc50458a19edf75a7e027f050d2c291677dfcc9a
|
data/Rakefile
CHANGED
@@ -65,4 +65,10 @@ end
|
|
65
65
|
|
66
66
|
release_task = Rake.application["release"]
|
67
67
|
# We use Trusted Publishing.
|
68
|
+
release_task.prerequisites.delete("build")
|
68
69
|
release_task.prerequisites.delete("release:rubygem_push")
|
70
|
+
release_task_comment = release_task.comment
|
71
|
+
if release_task_comment
|
72
|
+
release_task.clear_comments
|
73
|
+
release_task.comment = release_task_comment.gsub(/ and build.*$/, "")
|
74
|
+
end
|
data/doc/text/news.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# News
|
2
2
|
|
3
|
+
## 3.6.5 - 2024-12-15 {#version-3-6-5}
|
4
|
+
|
5
|
+
### Fixes
|
6
|
+
|
7
|
+
* parallel: thread: Fixed a bug that we can't use `pend` and `notify`.
|
8
|
+
* GH-271
|
9
|
+
* Reported by Takahiro Ueda
|
10
|
+
* Patch by Tsutomu Katsube
|
11
|
+
|
12
|
+
### Thanks
|
13
|
+
|
14
|
+
* Takahiro Ueda
|
15
|
+
|
16
|
+
* Tsutomu Katsube
|
17
|
+
|
3
18
|
## 3.6.4 - 2024-11-28 {#version-3-6-4}
|
4
19
|
|
5
20
|
### Improvements
|
@@ -35,10 +35,18 @@ module Test
|
|
35
35
|
@parent_test_result.add_failure(failure)
|
36
36
|
end
|
37
37
|
|
38
|
+
def add_pending(pending)
|
39
|
+
@parent_test_result.add_pending(pending)
|
40
|
+
end
|
41
|
+
|
38
42
|
def add_omission(omission)
|
39
43
|
@parent_test_result.add_omission(omission)
|
40
44
|
end
|
41
45
|
|
46
|
+
def add_notification(notification)
|
47
|
+
@parent_test_result.add_notification(notification)
|
48
|
+
end
|
49
|
+
|
42
50
|
def passed?
|
43
51
|
@parent_test_result.passed?
|
44
52
|
end
|
@@ -65,7 +65,7 @@ module Test
|
|
65
65
|
finished_is_yielded = false
|
66
66
|
finished_object_is_yielded = false
|
67
67
|
previous_event_name = nil
|
68
|
-
test.run(result,
|
68
|
+
test.run(result, runner_class: self.class) do |event_name, *args|
|
69
69
|
case previous_event_name
|
70
70
|
when Test::Unit::TestCase::STARTED
|
71
71
|
if event_name != Test::Unit::TestCase::STARTED_OBJECT
|
@@ -17,12 +17,12 @@ module Test
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def run_all_tests
|
20
|
-
|
20
|
+
n_workers = TestSuiteRunner.n_workers
|
21
21
|
|
22
|
-
|
22
|
+
workers = []
|
23
23
|
sub_exceptions = []
|
24
|
-
|
25
|
-
|
24
|
+
n_workers.times do |i|
|
25
|
+
workers << Thread.new(i) do |worker_id|
|
26
26
|
begin
|
27
27
|
loop do
|
28
28
|
task = @task_queue.pop
|
@@ -39,10 +39,10 @@ module Test
|
|
39
39
|
|
40
40
|
yield
|
41
41
|
|
42
|
-
|
42
|
+
n_workers.times do
|
43
43
|
@task_queue << nil
|
44
44
|
end
|
45
|
-
|
45
|
+
workers.each(&:join)
|
46
46
|
sub_exceptions.each do |exception|
|
47
47
|
raise exception
|
48
48
|
end
|
data/lib/test/unit/testcase.rb
CHANGED
@@ -577,7 +577,7 @@ module Test
|
|
577
577
|
# Runs the individual test method represented by this
|
578
578
|
# instance of the fixture, collecting statistics, failures
|
579
579
|
# and errors in result.
|
580
|
-
def run(result,
|
580
|
+
def run(result, runner_class: nil)
|
581
581
|
begin
|
582
582
|
@_result = result
|
583
583
|
@internal_data.test_started
|
data/lib/test/unit/testsuite.rb
CHANGED
@@ -47,9 +47,9 @@ module Test
|
|
47
47
|
|
48
48
|
# Runs the tests and/or suites contained in this
|
49
49
|
# TestSuite.
|
50
|
-
def run(result,
|
51
|
-
|
52
|
-
|
50
|
+
def run(result, runner_class: nil, &progress_block)
|
51
|
+
runner_class ||= TestSuiteRunner
|
52
|
+
runner_class.new(self).run(result) do |event, *args|
|
53
53
|
case event
|
54
54
|
when STARTED
|
55
55
|
@start_time = Time.now
|
data/lib/test/unit/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test-unit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.5
|
5
5
|
platform: ruby
|
6
|
-
original_platform: ''
|
7
6
|
authors:
|
8
7
|
- Kouhei Sutou
|
9
8
|
- Haruka Yoshihara
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: power_assert
|
@@ -113,6 +113,7 @@ metadata:
|
|
113
113
|
source_code_uri: https://github.com/test-unit/test-unit
|
114
114
|
documentation_uri: https://test-unit.github.io/test-unit/en/
|
115
115
|
bug_tracker_uri: https://github.com/test-unit/test-unit/issues
|
116
|
+
post_install_message:
|
116
117
|
rdoc_options: []
|
117
118
|
require_paths:
|
118
119
|
- lib
|
@@ -127,7 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
128
|
- !ruby/object:Gem::Version
|
128
129
|
version: '0'
|
129
130
|
requirements: []
|
130
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.5.22
|
132
|
+
signing_key:
|
131
133
|
specification_version: 4
|
132
134
|
summary: An xUnit family unit testing framework for Ruby.
|
133
135
|
test_files: []
|