mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-13 14:00:29 +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:
parent
a9329fba9e
commit
9ab7894c1a
@ -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
|
// 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
|
// The configuration for golangBuild can be found in testdata/TestGolangIntegration/golang-project1/.pipeline/config.yml
|
||||||
func TestGolangBuild_Project1(t *testing.T) {
|
func TestGolangBuild_Project1(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
pwd, err := os.Getwd()
|
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.
|
// 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
|
// The configuration for golangBuild can be found in testdata/TestGolangIntegration/golang-project2/.pipeline/config.yml
|
||||||
func TestGolangBuild_Project2(t *testing.T) {
|
func TestGolangBuild_Project2(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
pwd, err := os.Getwd()
|
pwd, err := os.Getwd()
|
||||||
|
@ -18,6 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestGradleExecuteBuild_JavaProject_BOMCreation(t *testing.T) {
|
func TestGradleExecuteBuild_JavaProject_BOMCreation(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
pwd, err := os.Getwd()
|
pwd, err := os.Getwd()
|
||||||
@ -90,6 +91,7 @@ ls -l ./build/reports/ >files-list.txt 2>&1
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGradleExecuteBuild_JavaProjectWithBomPlugin(t *testing.T) {
|
func TestGradleExecuteBuild_JavaProjectWithBomPlugin(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
pwd, err := os.Getwd()
|
pwd, err := os.Getwd()
|
||||||
|
@ -10,6 +10,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestMavenBuildCloudSdkSpringProject(t *testing.T) {
|
func TestMavenBuildCloudSdkSpringProject(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
|
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
|
||||||
Image: "maven:3-openjdk-8-slim",
|
Image: "maven:3-openjdk-8-slim",
|
||||||
User: "1000",
|
User: "1000",
|
||||||
@ -39,6 +40,7 @@ func TestMavenBuildCloudSdkSpringProject(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestMavenBuildCloudSdkTomeeProject(t *testing.T) {
|
func TestMavenBuildCloudSdkTomeeProject(t *testing.T) {
|
||||||
|
t.Parallel()
|
||||||
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
|
container := givenThisContainer(t, IntegrationTestDockerExecRunnerBundle{
|
||||||
Image: "maven:3-openjdk-8-slim",
|
Image: "maven:3-openjdk-8-slim",
|
||||||
User: "1000",
|
User: "1000",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user