Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: Tests fails #1

Open
juanwolf opened this issue Feb 8, 2018 · 0 comments
Open

Makefile: Tests fails #1

juanwolf opened this issue Feb 8, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@juanwolf
Copy link
Owner

juanwolf commented Feb 8, 2018

Hi myself,

I tried to run the tests but they failed:

docker image inspect wham:test > /dev/null 2>&1 ||      docker build -t wham:test .
docker run -v /Users/juanwolf/projects/go/src/github.com/juanwolf/wham:/usr/src/app wham:test  go get -u github.com/golang/dep/cmd/dep && dep ensure;
if [ "true" == "true" ]; then docker run -v /Users/juanwolf/projects/go/src/github.com/juanwolf/wham:/usr/src/app wham:test  go test -coverprofile=coverage.txt -covermode=atomic -race ./cmd; else  go test -coverprofile=coverage.txt -covermode=atomic -race ./cmd; fi
# app/cmd
/tmp/go-build256696545/app/cmd/_test/_obj_test/init.go:6:2: imported and not used: "fmt"
/tmp/go-build256696545/app/cmd/_test/_obj_test/init.go:7:2: imported and not used: "os"
cmd/init_test.go:9:9: undefined: init
FAIL    app/cmd [build failed]
make: *** [test] Error 2

Could it be that the volume mounted does not reflect the current state of the dev environment and test against the code version when I built the docker image?

@juanwolf juanwolf added the bug Something isn't working label Feb 8, 2018
@juanwolf juanwolf self-assigned this Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant