1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-11 13:53:53 +02:00

adding parallel execution for integration test of golang gradle and maven (#3677)

Co-authored-by: anilkeshav27 <you@example.com>
This commit is contained in:
Anil Keshav 2022-03-29 07:38:11 +02:00 committed by GitHub
parent a9329fba9e
commit 9ab7894c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import (
// In this test the piper command golangBuild performs testing, BOM file creation and building a project with entry point in the cmd/server/server.go
// The configuration for golangBuild can be found in testdata/TestGolangIntegration/golang-project1/.pipeline/config.yml
func TestGolangBuild_Project1(t *testing.T) {
t.Parallel()
ctx := context.Background()
pwd, err := os.Getwd()
@ -103,6 +104,7 @@ ls -l >files-list.txt 2>&1
// In this test, the piper golangBuild command only builds the project with the entry point at the project root.
// The configuration for golangBuild can be found in testdata/TestGolangIntegration/golang-project2/.pipeline/config.yml
func TestGolangBuild_Project2(t *testing.T) {
t.Parallel()
ctx := context.Background()
pwd, err := os.Getwd()

View File

@ -18,6 +18,7 @@ import (
)
func TestGradleExecuteBuild_JavaProject_BOMCreation(t *testing.T) {
t.Parallel()
ctx := context.Background()
pwd, err := os.Getwd()
@ -90,6 +91,7 @@ ls -l ./build/reports/ >files-list.txt 2>&1
}
func TestGradleExecuteBuild_JavaProjectWithBomPlugin(t *testing.T) {
t.Parallel()
ctx := context.Background()
pwd, err := os.Getwd()

View File

@ -10,6 +10,7 @@ import (
)
func TestMavenBuildCloudSdkSpringProject(t *testing.T) {
t.Parallel()
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
Image: "maven:3-openjdk-8-slim",
User: "1000",
@ -39,6 +40,7 @@ func TestMavenBuildCloudSdkSpringProject(t *testing.T) {
}
func TestMavenBuildCloudSdkTomeeProject(t *testing.T) {
t.Parallel()
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
Image: "maven:3-openjdk-8-slim",
User: "1000",