(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestIntegration(t *testing.T) { |
| 43 | var Expect = NewWithT(t).Expect |
| 44 | |
| 45 | format.MaxLength = 0 |
| 46 | SetDefaultEventuallyTimeout(40 * time.Second) |
| 47 | |
| 48 | root, err := filepath.Abs("./../../") |
| 49 | Expect(err).NotTo(HaveOccurred()) |
| 50 | |
| 51 | fixtures := filepath.Join(root, "src", "integration", "testdata") |
| 52 | |
| 53 | platform, err := switchblade.NewPlatform(settings.Platform, settings.GitHubToken, settings.Stack) |
| 54 | Expect(err).NotTo(HaveOccurred()) |
| 55 | |
| 56 | buildpackFile := os.Getenv("BUILDPACK_FILE") |
| 57 | if buildpackFile == "" { |
| 58 | t.Fatal("BUILDPACK_FILE environment variable is required") |
| 59 | } |
| 60 | |
| 61 | err = platform.Initialize( |
| 62 | switchblade.Buildpack{ |
| 63 | Name: "java_buildpack", |
| 64 | URI: buildpackFile, |
| 65 | }, |
| 66 | ) |
| 67 | Expect(err).NotTo(HaveOccurred()) |
| 68 | |
| 69 | var suite spec.Suite |
| 70 | if settings.Serial { |
| 71 | suite = spec.New("integration", spec.Report(report.Terminal{}), spec.Sequential()) |
| 72 | } else { |
| 73 | suite = spec.New("integration", spec.Report(report.Terminal{}), spec.Parallel()) |
| 74 | } |
| 75 | |
| 76 | // Core container tests |
| 77 | suite("Tomcat", testTomcat(platform, fixtures)) |
| 78 | suite("SpringBoot", testSpringBoot(platform, fixtures)) |
| 79 | suite("JavaMain", testJavaMain(platform, fixtures)) |
| 80 | suite("DistZip", testDistZip(platform, fixtures)) |
| 81 | |
| 82 | suite("Groovy", testGroovy(platform, fixtures)) |
| 83 | suite("Ratpack", testRatpack(platform, fixtures)) |
| 84 | suite("Play", testPlay(platform, fixtures)) |
| 85 | suite("SpringBootCLI", testSpringBootCLI(platform, fixtures)) |
| 86 | |
| 87 | // Framework tests (APM agents, security providers, etc.) |
| 88 | suite("Frameworks", testFrameworks(platform, fixtures)) |
| 89 | |
| 90 | suite.Run(t) |
| 91 | |
| 92 | Expect(platform.Deinitialize()).To(Succeed()) |
| 93 | } |
nothing calls this directly
no test coverage detected