Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Separate build-tags and test-tags #1842

Closed

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions