os exec version dotnet build serverless test
MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -8,6 +8,7 @@ import (
"io/ioutil"
"net/http"
"os"
+ "os/exec"
"path"
"strings"
"testing"
@@ -267,7 +268,6 @@ func TestAccAwsPyServerlessRaw(t *testing.T) {
return assert.Contains(t, body, "{\"Path\":\"hello\",\"Count\":1}")
})
},
- RunBuild: true,
})
integration.ProgramTest(t, &test)
@@ -504,6 +504,12 @@ func TestAccAwsTsS3LambdaCopyZip(t *testing.T) {
}
func TestAccAwsTsServerlessRaw(t *testing.T) {
+ cmd, err := exec.Command("dotnet publish", "app")
+ if err != nil {
+ fmt.Printf("err: %v", err)
+ return
+ }
+ cmd.Run()
test := getAWSBase(t).
With(integration.ProgramTestOptions{
Dir: path.Join(getCwd(t), "..", "..", "aws-ts-serverless-raw"),
@@ -512,7 +518,6 @@ func TestAccAwsTsServerlessRaw(t *testing.T) {
return assert.Contains(t, body, "{\"Path\":\"hello\",\"Count\":1}")
})
},
- RunBuild: true,
})
integration.ProgramTest(t, &test)
}

os exec version dotnet build serverless test