Commit f264982
Enable ParallelSuiteTest (#2687)
* Enable ParallelSuiteTest
Presumably, test was disabled to get rid of distraction during development
and was forgotten.
Test was broken and commented out temporary back in 2011 in
cc950e9 commit, named `Temp commit`.
Commit was introduced in `AllDynamic` branch
Test is green both on the base commit of AllDynamic branch (10a202a) as well as on branch merge point (b251fce)
Done:
- Add test: child suite should obey threadCount parameter
- Move private stuff to bottom, add more details in error message
* Fix: setup parallel option for all suites, including child
* Fix populateSuiteGraph method: add parent nodes, too
Before this, populateSuiteGraph method was ignoring any suite runner with child suites.
This leads to parallel suites not being executed with `randomize suite` option enabled
The method now add all nodes, including parents into the graph.
* Adjust expected results for suitesShouldRunInParallel4
This test implied a requirement to exclude duplicating suite files from run.
For example, for suite graph like:
suite-parallel-1.xml suite-parallel-2.xml suite-parallel-2-1.xml suite-parallel-2-2.xml
| |
| |
---------- ---------| v
v v suite-parallel-2-2-1.xml
suite-parallel-2-1.xml suite-parallel-2-2.xml
|
|
v
suite-parallel-2-2-1.xml
a test expected 5 suites and 5 threads.
However, this test was excluded from TestNG unit tests since 2011, and broken somewhere later
on the timeline. Dropping mentioned requirement (i.e. leaving things as it is now),
since there's no complains on current behaviour by adjusting test expected results, to
8 expected suites and 8 threads.
* review fixes:
- revert suite order
- gradle autostyle apply
- set parallel mode recursively
Co-authored-by: sankouski-dzmitry <sankouski.dzmitry@gmail.com>
Co-authored-by: Dzmitry Sankouski <dsankouski@gmail.com>1 parent 290532e commit f264982
File tree
9 files changed
+132
-55
lines changed- testng-core/src
- main/java/org/testng
- test
- java/test/thread
- resources
- parallel-suites
9 files changed
+132
-55
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 347 | + | |
353 | 348 | | |
354 | 349 | | |
355 | 350 | | |
| |||
366 | 361 | | |
367 | 362 | | |
368 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
369 | 376 | | |
370 | 377 | | |
371 | 378 | | |
| |||
1256 | 1263 | | |
1257 | 1264 | | |
1258 | 1265 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
| 1266 | + | |
| 1267 | + | |
1262 | 1268 | | |
1263 | 1269 | | |
1264 | 1270 | | |
| |||
Lines changed: 101 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
35 | 42 | | |
36 | 43 | | |
37 | 44 | | |
38 | | - | |
| 45 | + | |
| 46 | + | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | 54 | | |
75 | 55 | | |
| 56 | + | |
76 | 57 | | |
77 | 58 | | |
78 | | - | |
79 | | - | |
| 59 | + | |
| 60 | + | |
80 | 61 | | |
81 | 62 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
86 | 67 | | |
87 | 68 | | |
88 | 69 | | |
| |||
92 | 73 | | |
93 | 74 | | |
94 | 75 | | |
95 | | - | |
| 76 | + | |
96 | 77 | | |
97 | 78 | | |
98 | 79 | | |
| |||
102 | 83 | | |
103 | 84 | | |
104 | 85 | | |
105 | | - | |
| 86 | + | |
106 | 87 | | |
107 | 88 | | |
108 | 89 | | |
| |||
112 | 93 | | |
113 | 94 | | |
114 | 95 | | |
115 | | - | |
| 96 | + | |
| 97 | + | |
116 | 98 | | |
117 | 99 | | |
118 | 100 | | |
| |||
134 | 116 | | |
135 | 117 | | |
136 | 118 | | |
137 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
138 | 198 | | |
139 | 199 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | 112 | | |
114 | | - | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments