File tree Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Expand file tree Collapse file tree 5 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1+ [run]
2+ branch = True
3+ concurrency =
4+ gevent
5+ multiprocessing
6+
7+ [report]
8+ precision = 1
9+ include =
10+ ./*
11+ omit =
12+ lib/tarantool-python/*
13+ lib/msgpack-python/*
14+ test/*
Original file line number Diff line number Diff line change 5858 - name : run regression tests
5959 run : |
6060 make test
61+ - name : code coverage
62+ if : ${{ matrix.python-version == '3.8' && matrix.tarantool-version == '2.7' }}
63+ run : |
64+ pip install coveralls==3.*
65+ make coverage
66+ - name : upload coverage data to coveralls.io
67+ if : ${{ matrix.python-version == '3.8' && matrix.tarantool-version == '2.7' }}
68+ run : coveralls --service=github
69+ env :
70+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST ) ) )
2+ PROJECT_DIR := $(patsubst % /,% ,$(dir $(MAKEFILE_PATH ) ) )
13TEST_RUN_EXTRA_PARAMS? =
24PYTHON? =python
35
@@ -13,11 +15,19 @@ luacheck:
1315 luacheck --config .luacheckrc .
1416
1517test_integration :
16- $(PYTHON ) test/test-run.py --force $(TEST_RUN_EXTRA_PARAMS )
18+ PYTHONPATH= $( PROJECT_DIR ) $(PYTHON ) test/test-run.py --force $(TEST_RUN_EXTRA_PARAMS )
1719
1820test_unittest :
1921 $(PYTHON ) -m unittest discover test/unittest/
2022
2123test : test_unittest test_integration
2224
25+ coverage :
26+ PYTHON=" coverage run" make -f $(MAKEFILE_PATH ) test
27+ coverage combine $(PROJECT_DIR ) $(PROJECT_DIR ) /test
28+ coverage report
29+
30+ clean :
31+ coverage erase
32+
2333.PHONY : lint flake8 luacheck test test_integration test_unittest
Original file line number Diff line number Diff line change 11# Tarantool Functional testing framework
22
3+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/tarantool/test-run/badge.svg )] ( https://coveralls.io/github/tarantool/test-run )
4+
35### Test Suite
46
57Bunch of tests, that lay down in the subfolder (recursively) with ` suite.ini `
Original file line number Diff line number Diff line change 1+ coverage==5.*
12flake8==3.7.9
23hypothesis==4.*
You can’t perform that action at this time.
0 commit comments