Closed KevinColemanInc closed 3 years ago
Based on screenshots I see a code it generates it's definitely gotests
and impl
(implement interface), but I have no idea how to configure it. My Gogland says the feature was added n 2021.02, so I guess its pretty fresh. Meanwhile, you can configure these tools in VSCode
.
For future ppl, I contacted GoLand support and they said they don't provide a way to configure the generator at this time.
You can use an "external tool" + keyboard short cut to simulate the behavior.
-all -w -template_dir {gotest-template-path}/templates $FileName$
@KevinColemanInc did they also mention if this tool can be used to generate individual function level tests? I believe the above works only for the whole file right?
I checked the docs and I don't see how Goland could pass the filename to the tool. Maybe submit a support ticket for better advice.
The docs say you can use goland with this package, but I can't figure it out. Goland has its own "generate action" but the docs don't explain how to customize the template.
Is there an explicit guide on how to use this with Goland?