You've already forked sap-jenkins-library
							
							
				mirror of
				https://github.com/SAP/jenkins-library.git
				synced 2025-10-30 23:57:50 +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:
		| @@ -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() | ||||
|   | ||||
| @@ -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() | ||||
|   | ||||
| @@ -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", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user