Skip to content

Commit

Permalink
fix: ensure Coverage report is combined together (aws#297)
Browse files Browse the repository at this point in the history
Run coverage in Append mode, so that we build a full coverage report for codecov

fixes: aws#296
  • Loading branch information
antdking authored and Tyler Hargraves committed Mar 22, 2022
1 parent c1fe6f9 commit 80a3cf3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,12 @@ deps =
py{35,36,37,38,39}: aiobotocore >= 0.10.0

commands =
py{27,34}-default: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/ext/django --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py --ignore tests/ext/sqlalchemy_core
py{35,36,37,38,39}-default: coverage run --source aws_xray_sdk -m py.test tests --ignore tests/ext/django --ignore tests/ext/sqlalchemy_core
py{27,36,37,38,39}-default: coverage run --source aws_xray_sdk -m py.test tests/ext/sqlalchemy_core
py{34,35}-default: coverage run --source aws_xray_sdk -m py.test tests/ext/sqlalchemy_core/ --ignore tests/ext/sqlalchemy_core/test_sqlalchemy_core_2.py
django{22,30,31,32}: coverage run --source aws_xray_sdk -m py.test tests/ext/django
coverage erase
py{27,34}-default: coverage run --append --source aws_xray_sdk -m py.test tests --ignore tests/ext/aiohttp --ignore tests/ext/aiobotocore --ignore tests/ext/django --ignore tests/test_async_local_storage.py --ignore tests/test_async_recorder.py --ignore tests/ext/sqlalchemy_core
py{35,36,37,38,39}-default: coverage run --append --source aws_xray_sdk -m py.test tests --ignore tests/ext/django --ignore tests/ext/sqlalchemy_core
py{27,36,37,38,39}-default: coverage run --append --source aws_xray_sdk -m py.test tests/ext/sqlalchemy_core
py{34,35}-default: coverage run --append --source aws_xray_sdk -m py.test tests/ext/sqlalchemy_core/ --ignore tests/ext/sqlalchemy_core/test_sqlalchemy_core_2.py
django{22,30,31,32}: coverage run --append --source aws_xray_sdk -m py.test tests/ext/django
codecov

setenv =
Expand Down

0 comments on commit 80a3cf3

Please sign in to comment.