goconvey icon indicating copy to clipboard operation
goconvey copied to clipboard

No detailed log output after run go test

Open robertzhangwenjie opened this issue 2 years ago • 4 comments

my testcase: image

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

expected: image

robertzhangwenjie avatar Sep 04 '22 05:09 robertzhangwenjie

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

robertzhangwenjie avatar Sep 08 '22 02:09 robertzhangwenjie

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

robertzhangwenjie avatar Sep 08 '22 02:09 robertzhangwenjie

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 avatar Jan 03 '23 13:01 cookchen233

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!

cookchen233 avatar Jan 04 '23 15:01 cookchen233