elvish/.appveyor.yml
Kurtis Rader ad558b1e0d Include cross-package invocations in test coverage
The default behavior of `go test -cover` ignores coverage by integration
tests. That is, it ignores coverage by tests in a different package. This
penalizes Elvish since Elvish has a lot of integration tests that are
meant to indirectly, but explicitly, exercise code in other packages that
do not have explicit unit tests.

This change makes the test coverage more accurate for the purposes of
this project.

Resolves #1062
Resolves #1187
2021-01-03 02:05:44 +00:00

17 lines
547 B
YAML

platform: x64
clone_folder: c:\gopath\src\github.com\elves\elvish
environment:
GOPATH: c:\gopath
ELVISH_TEST_TIME_SCALE: 10
install:
# The codecov uploader depends on a POSIX shell and commands such as `find`
# so ensure the relevant Windows MSYS2 directory is in the external command
# search path.
- set PATH=C:\msys64\usr\bin;%PATH%
build: off
before_test:
- go version
test_script:
- go test -coverprofile=cover -coverpkg=./pkg/... ./pkg/...
- curl -s https://codecov.io/bash -o codecov && bash codecov -f cover || ver > nul