# Compile error - gotestcover " matched no packages"

**URL:** <https://discuss.elastic.co/t/compile-error-gotestcover-matched-no-packages/53190>\
**Category:** Beats\
**Created:** [June 17, 2016, 8:38pm UTC](https://discuss.elastic.co/t/compile-error-gotestcover-matched-no-packages/53190 "2016-06-17T20:38:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syst0m](https://avatars.discourse-cdn.com/v4/letter/s/d2c977/32.png) [@syst0m](https://discuss.elastic.co/u/syst0m)\
**Post date:** [June 17, 2016, 8:38pm UTC](https://discuss.elastic.co/t/compile-error-gotestcover-matched-no-packages/53190/1 "2016-06-17T20:38:22Z")

</div>

beats]# make  
make -C libbeat testsuite || exit 1; make -C packetbeat testsuite || exit 1; make -C topbeat testsuite || exit 1; make -C filebeat testsuite || exit 1; make -C winlogbeat testsuite || exit 1; make -C metricbeat testsuite || exit 1;  
make[1]: Entering directory `/root/beats/libbeat' make unit-tests make[2]: Entering directory`/root/beats/libbeat'  
mkdir -p /root/beats/libbeat/build/coverage  
gotestcover is needed to fetch coverage for multiple packages  
go get [github.com/pierrre/gotestcover](http://github.com/pierrre/gotestcover)  
/root/beats/src/bin/gotestcover -coverprofile=/root/beats/libbeat/build/coverage/unit.cov [github.com/elastic/beats/libbeat/](http://github.com/elastic/beats/libbeat/)...  
command [go test -cover -coverprofile /tmp/gotestcover-394298164 warning: "[github.com/elastic/beats/libbeat/](http://github.com/elastic/beats/libbeat/)..." matched no packages]: exit status 1  
warning: "warning: "[github.com/elastic/beats/libbeat/](http://github.com/elastic/beats/libbeat/)..." matched no packages" matched no packages  
no packages to test  
test failed  
make[2]: \*\*\* [unit-tests] Error 1  
make[2]: Leaving directory `/root/beats/libbeat' make[1]: *** [testsuite] Error 2 make[1]: Leaving directory`/root/beats/libbeat'  
make: \*\*\* [testsuite] Error 1

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 17, 2016, 8:43pm UTC](https://discuss.elastic.co/t/compile-error-gotestcover-matched-no-packages/53190/2 "2016-06-17T20:43:40Z")

</div>

Probably your Go development environment is setup wrong. See [https://github.com/elastic/beats/blob/master/CONTRIBUTING.md#setting-up-your-dev-environment](https://github.com/elastic/beats/blob/master/CONTRIBUTING.md#setting-up-your-dev-environment)

We are not currently seeing any failures in our CI systems (Jenkins, Travis, or AppVeyor).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 8, 2016, 8:38pm UTC](https://discuss.elastic.co/t/compile-error-gotestcover-matched-no-packages/53190/3 "2016-07-08T20:38:21Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
