test-unit 3.6.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a2d8f65980b8363f1d11db9d701d64c0d7b61d08e3bb060c91c360431e3caa7
4
- data.tar.gz: 8f81f23199da018d75b30a97ba3468d650f2a3e64f0a58a320027dd721d713fb
3
+ metadata.gz: 229f08041ec90505679800d12fdf5fca1f70623f5d4b91b54ee5e75bb171efe5
4
+ data.tar.gz: 5d51111b001089cf72b69c4df3e11a8d590e8be03497ffa22b9f5bc48219296a
5
5
  SHA512:
6
- metadata.gz: 66328122e4492fbbb94c448289645ac8cb4f5617c2eff8f54247a14b59beb8cecf0cbb09099272209087fdaa51a51c499572b65d0ccbbb2c62e7e60216b6d6fa
7
- data.tar.gz: 7a921f17e91f850de81d6fd394956e7147e60a5955050f1edfb2d01e80a56742d52ab1fb8f2098c09796f997e177b6240be968a00356e9bfb49102156352918a
6
+ metadata.gz: 2b655e8a13f61513ef4b4574766fb94003416890d3b30f1bed2831c2a48d6606705752bb100dd15bbdcfcdc76f2c87bd8c086b8b7b6c6223982e81b93e9d91c4
7
+ data.tar.gz: 16293a67ec4a26eb23c7f57784dba2ef5c76f5fb952645a7a1654db217f4e12791424ca6264395ae7c2669560af3ecbc560f23ae27c7cdbaa7268474911d519d
data/doc/text/news.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # News
2
2
 
3
+ ## 3.6.1 - 2023-06-25 {#version-3-6-1}
4
+
5
+ ### Improvements
6
+
7
+ * collector: load: Improved performance when a large number of test
8
+ files exist.
9
+ [GH-232][https://github.com/test-unit/test-unit/issues/232]
10
+ [Patch by akira yamada]
11
+
12
+ ### Thanks
13
+
14
+ * akira yamada
15
+
3
16
  ## 3.6.0 - 2023-05-25 {#version-3-6-0}
4
17
 
5
18
  ### Improvements
@@ -39,7 +39,8 @@ module Test
39
39
  froms = @default_test_paths if froms.empty?
40
40
  froms = ["."] if froms.empty?
41
41
  test_suites = []
42
- already_gathered = find_test_cases
42
+ already_gathered = {}
43
+ find_test_cases(already_gathered)
43
44
  froms.each do |from|
44
45
  from = resolve_path(from)
45
46
  if from.directory?
@@ -66,12 +67,13 @@ module Test
66
67
  end
67
68
  end
68
69
 
69
- def find_test_cases(ignore=[])
70
+ def find_test_cases(already_gathered)
70
71
  test_cases = []
71
72
  TestCase::DESCENDANTS.each do |test_case|
72
- test_cases << test_case unless ignore.include?(test_case)
73
+ next if already_gathered.key?(test_case)
74
+ test_cases << test_case
75
+ already_gathered[test_case] = true
73
76
  end
74
- ignore.concat(test_cases)
75
77
  test_cases
76
78
  end
77
79
 
@@ -1,5 +1,5 @@
1
1
  module Test
2
2
  module Unit
3
- VERSION = "3.6.0"
3
+ VERSION = "3.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-10 00:00:00.000000000 Z
12
+ date: 2023-06-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: power_assert