Skip to content

Commit 63c0c5f

Browse files
committed
1 parent 6145711 commit 63c0c5f

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.coveragerc

+9
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

+4
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

+5
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
@@ -20,4 +22,7 @@ test_unittest:
2022

2123
test: test_unittest test_integration
2224

25+
coverage_report: test
26+
coverage report -m
27+
2328
.PHONY: lint flake8 luacheck test test_integration test_unittest

requirements-test.txt

+1
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)