smartystreets / goconvey

Go testing in the browser. Integrates with `go test`. Write behavioral tests in Go.
http://smartystreets.github.io/goconvey/
Other
8.23k stars 554 forks source link

No detailed log output after run go test #667

Open robertzhangwenjie opened 2 years ago

robertzhangwenjie commented 2 years ago

my testcase:

image

after run go test ./... -v, the output as below:

image

expected:

image
robertzhangwenjie commented 2 years ago

I found it works on linux os ,but doesnot work on macos with m1

robertzhangwenjie commented 2 years ago

I found the reason why the reuslt was not my expect, cause i used github.com/glycerine/goconvey instead goconvey in my project.

cookchen233 commented 1 year ago

Yes, this is a bug. I have debugged it for a long time, if using "go test -v", it works, but when running the compiled test file, it does not work, and I already add "-test.v" when compiling. go test -c -test.v ./test ./test -test.v all of them don't have the details.

cookchen233 commented 1 year ago

I found a parameter "-convey-story", adding it will show the details. ./test -convey-story or use it in the test command go test -convey-story or type it in test configuration

image

It works!