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
validate 失败后report无法正常生成 #1712
Comments
+1 |
2 similar comments
+1 |
+1 |
请问能通过降版本解决吗? |
+1,这要怎么解决 |
问题描述:我是通过从数据库读取配置、用例参数然后传入执行,代码如下:
详细描述:但是执行时也发现了这个问题,如果断言成功报告可以生成,只要断言失败就会报:runtime error: invalid memory address or nil pointer dereference,调试发现代码执行到
进一步描述:但是通过单独执行如下测试函数,即使断言失败也不会报错
|
在main.go中加入 testing.Init() 来初始化参数就可以正常work了,本地重新make build生成hrp。
|
感谢解答,有效 |
后面验证又发现go 1.19不会报invalid memory address or nil pointer dereference,但是go 1.21的版本会报invalid memory address or nil pointer dereference |
desc
testcase
cmd
hrp run test/tmp.yml -s -g -c --log-plugin
error
The text was updated successfully, but these errors were encountered: