Skip to content

Commit 84833d8

Browse files
authored
[ui5-builder][INTERNAL] builder: Run tests sequentially (#500)
This should improve test stability and reduce timeouts in Azure on Windows.
1 parent 86378ad commit 84833d8

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

packages/builder/test/lib/builder/builder.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ test.serial("Build", async (t) => {
171171
t.is(executeCleanupTasksStub.callCount, 1, "Cleanup called once");
172172
});
173173

174-
test("Build application.a", (t) => {
174+
test.serial("Build application.a", (t) => {
175175
const destPath = "./test/tmp/build/application.a/dest";
176176
const expectedPath = path.join("test", "expected", "build", "application.a", "dest");
177177

@@ -191,7 +191,7 @@ test("Build application.a", (t) => {
191191
});
192192
});
193193

194-
test("Build application.a with error", async (t) => {
194+
test.serial("Build application.a with error", async (t) => {
195195
const destPath = "./test/tmp/build/application.a/dest";
196196

197197
const error = await t.throwsAsync(builder.build({
@@ -201,7 +201,7 @@ test("Build application.a with error", async (t) => {
201201
t.deepEqual(error.message, `Unknown type 'non existent'`);
202202
});
203203

204-
test("Build application.a with dependencies", (t) => {
204+
test.serial("Build application.a with dependencies", (t) => {
205205
const destPath = "./test/tmp/build/application.a/dest-deps";
206206
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-deps");
207207

@@ -222,7 +222,7 @@ test("Build application.a with dependencies", (t) => {
222222
});
223223
});
224224

225-
test("Build application.a with dependencies include", (t) => {
225+
test.serial("Build application.a with dependencies include", (t) => {
226226
const destPath = "./test/tmp/build/application.a/dest-deps-incl";
227227
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-deps");
228228

@@ -243,7 +243,7 @@ test("Build application.a with dependencies include", (t) => {
243243
});
244244
});
245245

246-
test("Build application.a with dependencies exclude", (t) => {
246+
test.serial("Build application.a with dependencies exclude", (t) => {
247247
const destPath = "./test/tmp/build/application.a/dest-deps-excl";
248248
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-deps-excl");
249249

@@ -264,7 +264,7 @@ test("Build application.a with dependencies exclude", (t) => {
264264
});
265265
});
266266

267-
test("Build application.a self-contained", (t) => {
267+
test.serial("Build application.a self-contained", (t) => {
268268
const destPath = "./test/tmp/build/application.a/dest-self";
269269
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-self");
270270

@@ -285,7 +285,7 @@ test("Build application.a self-contained", (t) => {
285285
});
286286
});
287287

288-
test("Build application.a with dependencies self-contained", (t) => {
288+
test.serial("Build application.a with dependencies self-contained", (t) => {
289289
const destPath = "./test/tmp/build/application.a/dest-depself";
290290
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-depself");
291291

@@ -307,7 +307,7 @@ test("Build application.a with dependencies self-contained", (t) => {
307307
});
308308
});
309309

310-
test("Build application.a [dev mode]", (t) => {
310+
test.serial("Build application.a [dev mode]", (t) => {
311311
const destPath = "./test/tmp/build/application.a/dest-dev";
312312
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-dev");
313313

@@ -328,7 +328,7 @@ test("Build application.a [dev mode]", (t) => {
328328
});
329329
});
330330

331-
test("Build application.a and clean target path [dev mode]", (t) => {
331+
test.serial("Build application.a and clean target path [dev mode]", (t) => {
332332
const destPath = "./test/tmp/build/application.a/dest-clean";
333333
const destPathRubbishSubFolder = destPath + "/rubbish-should-be-deleted";
334334
const expectedPath = path.join("test", "expected", "build", "application.a", "dest-dev");
@@ -356,7 +356,7 @@ test("Build application.a and clean target path [dev mode]", (t) => {
356356
});
357357
});
358358

359-
test("Build application.g", (t) => {
359+
test.serial("Build application.g", (t) => {
360360
const destPath = "./test/tmp/build/application.g/dest";
361361
const expectedPath = path.join("test", "expected", "build", "application.g", "dest");
362362

@@ -376,7 +376,7 @@ test("Build application.g", (t) => {
376376
});
377377
});
378378

379-
test("Build application.g with component preload paths", (t) => {
379+
test.serial("Build application.g with component preload paths", (t) => {
380380
const destPath = "./test/tmp/build/application.g/dest2";
381381
const expectedPath = path.join("test", "expected", "build", "application.g", "dest");
382382

@@ -396,7 +396,7 @@ test("Build application.g with component preload paths", (t) => {
396396
});
397397
});
398398

399-
test("Build application.g with excludes", (t) => {
399+
test.serial("Build application.g with excludes", (t) => {
400400
const destPath = "./test/tmp/build/application.g/excludes";
401401
const expectedPath = path.join("test", "expected", "build", "application.g", "excludes");
402402

@@ -417,7 +417,7 @@ test("Build application.g with excludes", (t) => {
417417
});
418418
});
419419

420-
test("Build application.h", (t) => {
420+
test.serial("Build application.h", (t) => {
421421
const destPath = "./test/tmp/build/application.h/dest";
422422
const expectedPath = path.join("test", "expected", "build", "application.h", "dest");
423423

@@ -438,7 +438,7 @@ test("Build application.h", (t) => {
438438
});
439439
});
440440

441-
test("Build application.i", (t) => {
441+
test.serial("Build application.i", (t) => {
442442
const destPath = "./test/tmp/build/application.i/dest";
443443
const expectedPath = path.join("test", "expected", "build", "application.i", "dest");
444444

@@ -458,7 +458,7 @@ test("Build application.i", (t) => {
458458
});
459459
});
460460

461-
test("Build application.j", (t) => {
461+
test.serial("Build application.j", (t) => {
462462
const destPath = "./test/tmp/build/application.j/dest";
463463
const expectedPath = path.join("test", "expected", "build", "application.j", "dest");
464464

@@ -478,7 +478,7 @@ test("Build application.j", (t) => {
478478
});
479479
});
480480

481-
test("Build application.j with resources.json and version info", (t) => {
481+
test.serial("Build application.j with resources.json and version info", (t) => {
482482
const destPath = "./test/tmp/build/application.j/dest-resources-json";
483483
const expectedPath = path.join("test", "expected", "build", "application.j", "dest-resources-json");
484484

@@ -523,7 +523,7 @@ test("Build application.j with resources.json and version info", (t) => {
523523
});
524524
});
525525

526-
test("Build library.d with copyright from .library file", (t) => {
526+
test.serial("Build library.d with copyright from .library file", (t) => {
527527
const destPath = "./test/tmp/build/library.d/dest";
528528
const expectedPath = path.join("test", "expected", "build", "library.d", "dest");
529529

@@ -544,7 +544,7 @@ test("Build library.d with copyright from .library file", (t) => {
544544
});
545545
});
546546

547-
test("Build library.e with copyright from settings of ui5.yaml", (t) => {
547+
test.serial("Build library.e with copyright from settings of ui5.yaml", (t) => {
548548
const destPath = path.join("test", "tmp", "build", "library.e", "dest");
549549
const expectedPath = path.join("test", "expected", "build", "library.e", "dest");
550550

@@ -565,7 +565,7 @@ test("Build library.e with copyright from settings of ui5.yaml", (t) => {
565565
});
566566
});
567567

568-
test("Build library.h with custom bundles and component-preloads", (t) => {
568+
test.serial("Build library.h with custom bundles and component-preloads", (t) => {
569569
const destPath = path.join("test", "tmp", "build", "library.h", "dest");
570570
const expectedPath = path.join("test", "expected", "build", "library.h", "dest");
571571

@@ -586,7 +586,7 @@ test("Build library.h with custom bundles and component-preloads", (t) => {
586586
});
587587
});
588588

589-
test("Build library.h with custom bundles and component-preloads with resources.json", (t) => {
589+
test.serial("Build library.h with custom bundles and component-preloads with resources.json", (t) => {
590590
const destPath = path.join("test", "tmp", "build", "library.h", "dest-resources-json");
591591
const expectedPath = path.join("test", "expected", "build", "library.h", "dest-resources-json");
592592

@@ -610,7 +610,7 @@ test("Build library.h with custom bundles and component-preloads with resources.
610610
});
611611
});
612612

613-
test("Build library.i with manifest info taken from .library and library.js", (t) => {
613+
test.serial("Build library.i with manifest info taken from .library and library.js", (t) => {
614614
const destPath = path.join("test", "tmp", "build", "library.i", "dest");
615615
const expectedPath = path.join("test", "expected", "build", "library.i", "dest");
616616

@@ -631,7 +631,7 @@ test("Build library.i with manifest info taken from .library and library.js", (t
631631
});
632632
});
633633

634-
test("Build library.j with JSDoc build only", (t) => {
634+
test.serial("Build library.j with JSDoc build only", (t) => {
635635
const destPath = path.join("test", "tmp", "build", "library.j", "dest");
636636
const expectedPath = path.join("test", "expected", "build", "library.j", "dest");
637637

@@ -653,7 +653,7 @@ test("Build library.j with JSDoc build only", (t) => {
653653
});
654654
});
655655

656-
test("Build theme.j even without an library", (t) => {
656+
test.serial("Build theme.j even without an library", (t) => {
657657
const destPath = "./test/tmp/build/theme.j/dest";
658658
const expectedPath = "./test/expected/build/theme.j/dest";
659659
return builder.build({
@@ -671,7 +671,7 @@ test("Build theme.j even without an library", (t) => {
671671
});
672672
});
673673

674-
test("Build theme.j even without an library with resources.json", (t) => {
674+
test.serial("Build theme.j even without an library with resources.json", (t) => {
675675
const destPath = "./test/tmp/build/theme.j/dest-resources-json";
676676
const expectedPath = "./test/expected/build/theme.j/dest-resources-json";
677677
return builder.build({

0 commit comments

Comments
 (0)