- edited description
"runtime.main" issues when running "go test"
Issue #64
new
Hi,
I think this is related to Issue #12
Example
I am in $GOPATH/src/golang_web_boilerplate
> go test ./...
# golang_web_boilerplate/db/migrations
runtime.main: call to external function main.main
runtime.main: main.main: not defined
runtime.main: undefined: main.main
? golang_web_boilerplate [no test files]
So first of all, there are those errors and secondly other tests are not executed (I have failing tests).
If I run go test ./internal/...
- everything works as expected:
> go test ./internal/...
? golang_web_boilerplate/internal/app/data [no test files]
--- FAIL: TestXxx (0.00s)
Error Trace: server_test.go:7
Error: Not equal:
expected: 10
received: 12
Messages: AAA
Error Trace: server_test.go:8
Error: Not equal:
expected: 10
received: 14
Messages: BBB
FAIL
FAIL golang_web_boilerplate/internal/app/web 0.920s
ok golang_web_boilerplate/internal/app/web/restutils 0.552s
Comments (1)
-
reporter - Log in to comment