File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 32
32
cd metering
33
33
cp tests/alembic.ini .
34
34
cp tests/test-settings.py settings.py
35
- sudo pip install alembic
36
- sudo pip install pymysql
37
- sudo pip install cryptography
35
+ sudo pip install alembic pymysql cryptography
38
36
PYTHONPATH=$PWD
39
37
alembic upgrade head
40
38
- run :
48
46
name : run tests for metering
49
47
command : |
50
48
cd metering
51
- PYTHONPATH=$PWD python tests/test_total_calls.py
49
+ sudo pip install coverage coveralls pytest
50
+ rm tests/__init__.py
51
+ PYTHONPATH=$PWD coverage run -m pytest tests/test_total_calls.py
52
+ coverage report -m
53
+ mkdir ../test-reports
54
+ coverage html -d ../test-reports
55
+ COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} coveralls
56
+ - store_test_results :
57
+ path : test-reports
52
58
- store_artifacts :
53
59
path : test-reports
54
- destination : test-reports
60
+ # destination: test-reports
Original file line number Diff line number Diff line change 1
1
# Snet-Platform-Usage
2
2
[ ![ CircleCI] ( https://circleci.com/gh/singnet/snet-platform-usage.svg?style=svg )] ( https://circleci.com/gh/singnet/snet-platform-usage )
3
+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/singnet/snet-platform-usage/badge.svg?branch=master )] ( https://coveralls.io/github/singnet/snet-platform-usage?branch=master )
You can’t perform that action at this time.
0 commit comments