How can I run go test commands to test "*_test.go" code

I want to test grafana apis in “install_command_test.go” code, this is the bug information:
“Running tool: C:\Program Files\Go\bin\go.exe test -timeout 30s -run ^TestRemoveGitBuildFromName$ github.com/grafana/grafana/pkg/cmd/grafana-cli/commands

FAIL github.com/grafana/grafana/pkg/cmd/grafana-cli/commands [build failed]”

more error information is here:
C:\Program Files\Go\bin\go.exe test -timeout 30s -run ^TestRemoveGitBuildFromName$ github.com/grafana/grafana/pkg/cmd/grafana-cli/commands

c:\Users\test\Desktop\grafana\grafana-8.1.0\grafana-8.1.0\pkg\services\sqlstore\migrator\sqlite_dialect.go:126:24: undefined: sqlite3.Error

c:\Users\test\Desktop\grafana\grafana-8.1.0\grafana-8.1.0\pkg\services\sqlstore\migrator\sqlite_dialect.go:137:24: undefined: sqlite3.Error

c:\Users\test\Desktop\grafana\grafana-8.1.0\grafana-8.1.0\pkg\services\sqlstore\migrator\sqlite_dialect.go:145:41: undefined: sqlite3.ErrConstraintUnique

FAIL [build failed]

FAIL

and I also want to test any other “*_test.go”, but failed.