forked from tornadoweb/tornado
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement unit testing by means of Tox #172
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ac8cbe5
Fix test that was using unorderable datetime format.
dpnova 1bb0654
Switch tests to use Tox
evilaliv3 be5a33f
Change assertIs in assertIdentical for backward compatibility with tw…
evilaliv3 c8c9624
Add testing against pythom 3.5 and pypy3
evilaliv3 c830059
Allow failures for python 3.5 and pypy3
evilaliv3 e777248
Test on python3/pypy3 only with twisted 15
evilaliv3 f7cd680
Pass travis environment variables to tox environments
evilaliv3 e30c02b
Add travis build and coveralls coverage badges
evilaliv3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,43 @@ | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "pypy" | ||
sudo: false | ||
|
||
matrix: | ||
include: | ||
- env: TOXENV=coveralls | ||
python: "2.7" | ||
- env: TOXENV=py26-twisted12 | ||
python: "2.6" | ||
- env: TOXENV=py26-twisted13 | ||
python: "2.6" | ||
- env: TOXENV=py26-twisted14 | ||
python: "2.6" | ||
- env: TOXENV=py26-twisted15 | ||
python: "2.6" | ||
- env: TOXENV=py27-twisted12 | ||
python: "2.7" | ||
- env: TOXENV=py27-twisted13 | ||
python: "2.7" | ||
- env: TOXENV=py27-twisted14 | ||
python: "2.7" | ||
- env: TOXENV=py27-twisted15 | ||
python: "2.7" | ||
- env: TOXENV=py35-twisted15 | ||
python: "3.5" | ||
- env: TOXENV=pypy-twisted12 | ||
python: "pypy" | ||
- env: TOXENV=pypy-twisted13 | ||
python: "pypy" | ||
- env: TOXENV=pypy-twisted14 | ||
python: "pypy" | ||
- env: TOXENV=pypy-twisted15 | ||
python: "pypy" | ||
- env: TOXENV=pypy3-twisted15 | ||
python: "pypy3" | ||
allow_failures: | ||
- env: TOXENV=py35-twisted15 | ||
- env: TOXENV=pypy3-twisted15 | ||
|
||
install: | ||
- pip install -r cyclone/tests/test_requirements.txt | ||
- pip install coveralls | ||
- pip install tox | ||
|
||
script: coverage run `which trial` cyclone | ||
after_success: coveralls | ||
script: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
; tox configuration file for running tests similar to buildbot builders. | ||
|
||
[tox] | ||
envlist = | ||
coveralls | ||
py26-twisted12 | ||
py26-twisted13 | ||
py26-twisted14 | ||
py26-twisted15 | ||
py27-twisted12 | ||
py27-twisted13 | ||
py27-twisted14 | ||
py27-twisted15 | ||
py35-twisted15 | ||
pypy-twisted12 | ||
pypy-twisted13 | ||
pypy-twisted14 | ||
pypy-twisted15 | ||
pypy3-twisted15 | ||
|
||
[testenv] | ||
commands = | ||
coverage erase | ||
coverage run --source=./cyclone {envbindir}/trial --rterrors {posargs:cyclone} | ||
coverage report -m | ||
|
||
[testenv:coveralls] | ||
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH | ||
deps = | ||
coverage | ||
coveralls | ||
mock | ||
twisted>=15.0, <16.0 | ||
commands = | ||
coverage erase | ||
coverage run --source=./cyclone {envbindir}/trial --rterrors {posargs:cyclone} | ||
coverage report -m | ||
coveralls | ||
|
||
[testenv:py26-twisted12] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=12.0, <13.0 | ||
|
||
[testenv:py26-twisted13] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=13.0, <14.0 | ||
|
||
[testenv:py26-twisted14] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=14.0, <15.0 | ||
|
||
[testenv:py26-twisted15] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=15.0, <15.5 | ||
|
||
[testenv:py27-twisted12] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=12.0, <13.0 | ||
|
||
[testenv:py27-twisted13] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=13.0, <14.0 | ||
|
||
[testenv:py27-twisted14] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=14.0, <15.0 | ||
|
||
[testenv:py27-twisted15] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=15.0, <16.0 | ||
|
||
[testenv:py35-twisted12] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=12.0, <13.0 | ||
|
||
[testenv:py35-twisted13] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=13.0, <14.0 | ||
|
||
[testenv:py35-twisted14] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=14.0, <15.0 | ||
|
||
[testenv:py35-twisted15] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=15.0, <16.0 | ||
|
||
[testenv:pypy-twisted12] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=12.0, <13.0 | ||
|
||
[testenv:pypy-twisted13] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=13.0, <14.0 | ||
|
||
[testenv:pypy-twisted14] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=14.0, <15.0 | ||
|
||
[testenv:pypy-twisted15] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=15.0, <16.0 | ||
|
||
[testenv:pypy3-twisted15] | ||
deps = | ||
coverage | ||
mock | ||
twisted>=15.0, <16.0 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is assertIdentical in python 2.7 @evilaliv3 ?