agiledragon / gomonkey

gomonkey is a library to make monkey patching in unit tests easy
MIT License
1.92k stars 178 forks source link

Intellij IDEA中,如何对所有go test命令都设置`-gcflags=all=-l`参数? #164

Closed 16RadioWave closed 1 month ago

16RadioWave commented 1 month ago

readme里说避免內联使gomonkey失效需要这个参数,Run -> Edit Configurations...里面可以添加运行配置,但只能对单个文件,有没有办法对所有test都配置这个参数?

For-ACGN commented 1 month ago

左下角有一个template 配置模板,可以在那里配置,后面跑的新测试都会应用配置

捕获