Skip to content

Commit 651f9b2

Browse files
committed
1 parent e6e621f commit 651f9b2

File tree

4 files changed

+18
-0
lines changed

4 files changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ jobs:
5858
- name: run regression tests
5959
run: |
6060
make test
61+
- name: code coverage
62+
run: |
63+
PYTHON="coverage run" make test_unittest

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
@@ -18,6 +20,9 @@ test_integration:
1820
test_unittest:
1921
$(PYTHON) -m unittest discover test/unittest/
2022

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

2328
.PHONY: lint flake8 luacheck test test_integration

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)