1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:50:04 +08:00

Merge pull request #872 from blueyed/improve-tests

[WIP] Improve tests
This commit is contained in:
Wang Shidong 2017-10-10 20:21:35 +08:00 committed by GitHub
commit d4718342e3
2 changed files with 15 additions and 1 deletions

View File

@ -58,5 +58,9 @@ script:
elif [ "$LINT" = "vint-errors" ]; then
vint --error .
elif [ "$LINT" = "vader" ]; then
make test
pip install --no-cache-dir https://github.com/Vimjas/covimerage/archive/develop.zip
make test_coverage
covimerage -vv xml --omit 'build/*'
pip install codecov
codecov -X search gcov pycov -f coverage.xml
fi

View File

@ -1,6 +1,16 @@
test: build/vader | build
vim -Nu test/vimrc -c 'Vader! test/**'
COVIMERAGE=$(shell command -v ccovimerage 2>/dev/null || echo build/covimerage/bin/covimerage)
test_coverage: $(COVIMERAGE) build/vader | build
$(COVIMERAGE) run vim -Nu test/vimrc -c 'Vader! test/**'
build/covimerage:
virtualenv $@
build/covimerage/bin/covimerage: | build/covimerage
. build/covimerage/bin/activate && pip install covimerage
build/vader:
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@