// can be execute with go test -tags=integration ./integration/...
packagemain
import(
"context"
"fmt"
"io/ioutil"
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
"github.com/testcontainers/testcontainers-go"
)
const(
installCommandstring="npm install -g @getgauge/cli --prefix=~/.npm-global --unsafe-perm"//option --unsafe-perm need to install gauge in docker container. See this issue: https://github.com/getgauge/gauge/issues/1470
)
funcrunTest(t*testing.T,languageRunnerstring){
ctx:=context.Background()
pwd,err:=os.Getwd()
assert.NoError(t,err,"Getting current working directory failed.")
pwd=filepath.Dir(pwd)
// using custom createTmpDir function to avoid issues with symlinks on Docker for Mac
tempDir,err:=createTmpDir("")
deferos.RemoveAll(tempDir)// clean up
assert.NoError(t,err,"Error when creating temp dir")