• Tomasz Maczukin's avatar
    Exclude mock files from coverage reporting · 52a91d9e
    Tomasz Maczukin authored
    Runner's codebase contains a lot of mock files. They are used only for
    tests and not for the production use.
    
    Unfortunately, because the files are not named as *_test.go - to allow
    use the mocks in tests outside of the mock source package - they are
    counted to the coverage report.
    
    We're using https://github.com/vektra/mockery to automatically generate
    mock files basing on interfaces. Mockery is creating mocks, that
    accept both scalar values as well as functions that accept mocked method
    argumets and returns mocked method result. However, we're mostly not
    using this mocking mechanism.
    
    Finally this ends in a lot of mocks code being not covered in test,
    which decreases the overall coverage value. While we're totally not
    interested in having coverage for mocks!
    
    This commit aims to remove all mocks from the coverage profile file,
    which should remove them from both percentage value calculation and the
    HTML/jUnit reports.
    52a91d9e
Name
Last commit
Last update
.gitlab Loading commit data...
apps/gitlab-runner-helper Loading commit data...
cache Loading commit data...
ci Loading commit data...
commands Loading commit data...
common Loading commit data...
dockerfiles Loading commit data...
docs Loading commit data...
executors Loading commit data...
helpers Loading commit data...
log Loading commit data...
network Loading commit data...
packaging Loading commit data...
scripts Loading commit data...
session Loading commit data...
shells Loading commit data...
tests Loading commit data...
vendor Loading commit data...
.codeclimate.yml Loading commit data...
.dockerignore Loading commit data...
.env Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
Dockerfile Loading commit data...
Gopkg.lock Loading commit data...
Gopkg.toml Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
Makefile.runner_helper.mk Loading commit data...
NOTICE Loading commit data...
Procfile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
Vagrantfile Loading commit data...
config.toml.example Loading commit data...
install.sh Loading commit data...
main.go Loading commit data...