Skip to content

Commit 9087358

Browse files
committed
1 parent 5efb38f commit 9087358

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.coveragerc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[run]
2+
branch = True
3+
4+
[report]
5+
include =
6+
./*
7+
omit =
8+
lib/tarantool-python/*
9+
lib/msgpack-python/*

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,7 @@ jobs:
5858
- name: run regression tests
5959
run: |
6060
make test
61+
- name: code coverage
62+
run: |
63+
PYTHON="coverage run" make test_unittest
64+
make coverage_report

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
TEST_RUN_EXTRA_PARAMS?=
22
PYTHON?=python
3+
MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
4+
PROJECT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
35

46
default:
57
false
@@ -18,6 +20,9 @@ test_integration:
1820
test_unittest:
1921
$(PYTHON) -m unittest discover test/unittest/
2022

23+
coverage_report: test
24+
coverage report -m
25+
2126
test: test_integration test_unittest
2227

2328
.PHONY: lint flake8 luacheck test test_integration test_unittest

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
coverage==4.5.3
12
flake8==3.7.9
23
hypothesis==4.*

0 commit comments

Comments
 (0)