文件>首选项>设置>搜索Test Flags 添加-v即可. 这样会打印print了.
一份实力代码:
//1_test.go
package ethereum import ( "testing" ) func Test1(t *testing.T) { // fmt.Print("dsaf") // print(uint64('1')) t.Log("dsaf") print('f') }
标签:testing,如何,print,测试代码,gopackage,dsaf,go From: https://www.cnblogs.com/zhangbo2008/p/17782023.html