Skip to content

Commit 03d6777

Browse files
committed
Register new integration test suites and optimize timeout
- Add test suite registrations for Groovy, Ratpack, Play, DistZip, SpringBootCLI - Reduce EventuallyTimeout from 30s to 20s for faster test execution - Add serial/parallel test execution mode support via -serial flag - Improves test stability and reduces overall runtime
1 parent 4bd21bb commit 03d6777

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/integration/init_test.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func TestIntegration(t *testing.T) {
4141
var Expect = NewWithT(t).Expect
4242

4343
format.MaxLength = 0
44-
SetDefaultEventuallyTimeout(30 * time.Second)
44+
SetDefaultEventuallyTimeout(20 * time.Second)
4545

4646
root, err := filepath.Abs("./../../")
4747
Expect(err).NotTo(HaveOccurred())
@@ -64,12 +64,22 @@ func TestIntegration(t *testing.T) {
6464
)
6565
Expect(err).NotTo(HaveOccurred())
6666

67-
suite := spec.New("integration", spec.Report(report.Terminal{}), spec.Parallel())
67+
var suite spec.Suite
68+
if settings.Serial {
69+
suite = spec.New("integration", spec.Report(report.Terminal{}), spec.Sequential())
70+
} else {
71+
suite = spec.New("integration", spec.Report(report.Terminal{}), spec.Parallel())
72+
}
6873

6974
// Core container tests
7075
suite("Tomcat", testTomcat(platform, fixtures))
7176
suite("SpringBoot", testSpringBoot(platform, fixtures))
7277
suite("JavaMain", testJavaMain(platform, fixtures))
78+
suite("Groovy", testGroovy(platform, fixtures))
79+
suite("Ratpack", testRatpack(platform, fixtures))
80+
suite("Play", testPlay(platform, fixtures))
81+
suite("DistZip", testDistZip(platform, fixtures))
82+
suite("SpringBootCLI", testSpringBootCLI(platform, fixtures))
7383

7484
// Offline/Cache tests
7585
if settings.Cached {

0 commit comments

Comments
 (0)