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 +4 -4
- data/doc/text/news.md +13 -0
- data/lib/test/unit/collector/load.rb +6 -4
- data/lib/test/unit/version.rb +1 -1
- 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: 229f08041ec90505679800d12fdf5fca1f70623f5d4b91b54ee5e75bb171efe5
|
4
|
+
data.tar.gz: 5d51111b001089cf72b69c4df3e11a8d590e8be03497ffa22b9f5bc48219296a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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(
|
70
|
+
def find_test_cases(already_gathered)
|
70
71
|
test_cases = []
|
71
72
|
TestCase::DESCENDANTS.each do |test_case|
|
72
|
-
|
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
|
|
data/lib/test/unit/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2023-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: power_assert
|