File tree 5 files changed +38
-1
lines changed 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/*
Original file line number Diff line number Diff line change 58
58
- name : run regression tests
59
59
run : |
60
60
make test
61
+ - name : code coverage
62
+ if : ${{ matrix.python-version == '3.8' && matrix.tarantool-version == '2.7' }}
63
+ run : |
64
+ make coverage
65
+ - name : upload coverage data to coveralls.io
66
+ if : ${{ matrix.python-version == '3.8' && matrix.tarantool-version == '2.7' }}
67
+ run : coveralls
68
+ env :
69
+ COVERALLS_REPO_TOKEN : ${{ secrets.COVERALLS_TOKEN }}
70
+ COVERALLS_PARALLEL : true
Original file line number Diff line number Diff line change
1
+ MAKEFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST ) ) )
2
+ PROJECT_DIR := $(patsubst % /,% ,$(dir $(MAKEFILE_PATH ) ) )
1
3
TEST_RUN_EXTRA_PARAMS? =
2
4
PYTHON? =python
3
5
@@ -13,11 +15,19 @@ luacheck:
13
15
luacheck --config .luacheckrc .
14
16
15
17
test_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 )
17
19
18
20
test_unittest :
19
21
$(PYTHON ) -m unittest discover test/unittest/
20
22
21
23
test : test_unittest test_integration
22
24
25
+ coverage :
26
+ PYTHON=" coverage run" make -f $(MAKEFILE_PATH ) test
27
+ coverage combine
28
+ coverage report
29
+
30
+ clean :
31
+ coverage erase
32
+
23
33
.PHONY : lint flake8 luacheck test test_integration test_unittest
Original file line number Diff line number Diff line change 1
1
# Tarantool Functional testing framework
2
2
3
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/tarantool/test-run/badge.svg )] ( https://coveralls.io/github/tarantool/test-run )
4
+
3
5
### Test Suite
4
6
5
7
Bunch 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.*
2
+ coveralls==1.*
1
3
flake8==3.7.9
2
4
hypothesis==4.*
You can’t perform that action at this time.
0 commit comments