Skip to content

Commit

Permalink
Collect test coverage (#482)
Browse files Browse the repository at this point in the history
Make test coverage collection more handsome, but don't enable it in
Gitlab CI yet: it reveals a lot of flaky tests and complicates merging PRs.

Close #88

Co-authored-by: mmelentiev-mail <[email protected]>
Co-authored-by: Yaroslav Dynnikov <[email protected]>
  • Loading branch information
3 people authored Feb 7, 2020
1 parent 24aee1f commit ccb49d8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ build.luarocks
coverage_result.txt
.DS_Store
.vscode
luacov.stats.out
luacov.*.out*
8 changes: 8 additions & 0 deletions .luacov
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exclude = {
'/test/',
'/tmp/',
'/dev/',
'/webui/',
'/build.luarocks/',
'/.rocks/',
}
7 changes: 3 additions & 4 deletions run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ set -e

# run tests
./taptest.lua
.rocks/bin/luatest -v
.rocks/bin/luatest -v --coverage

# collect coverage
# .rocks/bin/luacov-console ./cluster
# .rocks/bin/luacov-console -s > coverage_result.txt
# .rocks/bin/luacov-console -s
.rocks/bin/luacov-console `pwd`
.rocks/bin/luacov-console -s

0 comments on commit ccb49d8

Please sign in to comment.