Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ matrix:

install:
- pip install tox
- pip install codecov
- sh scripts/download-semaphore.sh

script:
- sh scripts/runtox.sh
- codecov

notifications:
webhooks:
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ six==1.11.0
tox==3.2.1
Werkzeug==0.14.1
pytest-localserver==0.4.1
pytest-cov==2.6.0
5 changes: 4 additions & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def send_event(self, event):
start = time.time()
output = subprocess.check_output([sys.executable, str(app)])
end = time.time()
assert int(end - start) == num_messages / 10

# Each message takes at least 0.1 seconds to process
assert int(end - start) >= num_messages / 10

assert output.count(b"HI") == num_messages


Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ basepython =
pypy: pypy

commands =
py.test {env:TESTPATH} {posargs}
py.test {env:TESTPATH} --cov=sentry_sdk {posargs}

[testenv:linters]
commands =
Expand Down