Separate build-tags and test-tags #1842
Description
Hi!
I have come across a use-case that is not covered by this extension, a use-case that I cannot imagine being alone with.
For many of my Go projects I have integration tests, these are tests that spin up docker containers and take longer to run. I also like to test my code on save.. To let me have the best of two worlds, fast running tests on save and longer integration tests on demand, I tag my integration tests with:
// +build integration
This stops the file from building unless I supply the tag with the build or test command.
Unfortunately this also disables the linting and syntax checks on the file, making it really hard to verify the code is working.
Atom solves this by having an option for build tags for build/install commands and a command for build tags for tests. I am not finding it possible to do a similar configuration with Visual Studio Code. All i find is go.buildTags
which affects both build and save.
Are there any plans to fix that?