Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

golang

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    .gitlab-ci.yml
    Dockerfile
    README.md
    ci.yml
    run-go-test

    Golang test container image

    This repository builds a container image suitable for running Go tests. Some useful features:

    • generate Gitlab-compatible test and coverage report artifacts
    • properly aggregate coverage data for a whole project (across all its sub-packages)

    To use, include ci.yml from your project's .gitlab-ci.yml. Some useful variables that can be defined:

    • GO_TEST_PACKAGES - Debian packages to install before running the tests
    • GO_TEST_GENERATE - Set to a non-empty value to run "go generate ./..." before running the tests
    • GO_TEST_ARGS - Additional arguments for "go test" (tags, etc)