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='...'
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_tagsfield to the Go chaser config:When
build_tagsis non-empty, inject-tags tag1,tag2into the test command: