feat(go-unittests): Support the GO_UNITTESTS_EXTRA_ARGS variable.
What
feat(go-unittests): Support the GO_UNITTESTS_EXTRA_ARGS variable.
Why
In Labkit, a lot of functionality is hidden behind build flags to reduce the number of dependencies imposed on users of the package.
That currently leaves large parts of the package untested, because the unit tests are executed without those build tags, and consequently the tests of optional sub-packges are not run.
This variable allows Labkit to configure the unit tests with the required build tags for all optional packages, improving the test coverage.
The implementation mimics the behavior of the docker, goreleaser and kaniko CI task and their respective _EXTRA_ARGS variables.
Edited by Florian Forster