Skip to content

feat(go): support build tags configuration for test runs #41

@piraz

Description

@piraz

Summary

Allow users to configure Go build tags globally via the chase setup() call.

Motivation

Some projects require build tags to run specific tests (e.g. integration, e2e). Without this, users must manually modify the chaser or run tests outside of chase.

Proposed Change

Add build_tags field to the Go chaser config:

require('chase').setup({
  chasers = {
    go = {
      build_tags = { 'integration', 'e2e' },
    }
  }
})

When build_tags is non-empty, inject -tags tag1,tag2 into the test command:

go test -v -tags integration,e2e ./... -run='...'

Metadata

Metadata

Assignees

Labels

No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions