Goland cannot recognize our tidb unit test function because we are using a forked go-check lib named “github.com/pingcap/check”. Every time I want to debug a single unit test I should take the following steps:
- create a new debug configuration
- fill the package path and add a program argument like “-check.f TestFoo”
- press “OK” to save the configuration
- press the debug button on the tool bar
HoweverI found it’s much more convenient to debug when we using the official go-check lib. The only thing we should do is simply clicking the triangle button on the left. Some way to achieve a better experience when debugging tidb unit test?