Skip to content
This repository was archived by the owner on Aug 29, 2019. It is now read-only.

Conversation

@mdruger
Copy link

@mdruger mdruger commented Feb 12, 2014

Add tox.ini file to enable multiversion testing. The done state for this card is to enable tox for python version 2.6 only. An additional card in this sprint will cover adding python version 2.7, and 3.3.

For testing,

get the latest build and this branch
run in a virtualenv with python 2.6 installed
run the command
$ tox

test results

the results of executing the above command and verifying passing tests should be this:

$ tox

|Name|Stmts|Miss|Cover|Missing|
|--------|--------|------|-------|-----------|
|aweber_api| 59| 14| 76% |28-46, 57, 90, 95|
|aweber_api.base| 29| 0| 100%| 
|aweber_api.collection| 86| 16| 81%| 43-45, 48-58, 101-102, 127, 131|
|aweber_api.data_dict|10|0 |100%|
|aweber_api.entry |83 |0 |100%|
|aweber_api.oauth |68 |9 |87% |21, 23-25, 36-39, 70, 75|
|aweber_api.response| 21| 1| 95%| 29|

TOTAL 356 40 89%

Ran 77 tests in 0.421s

OK
summary ---
py26: commands succeeded
congratulations :)

tox.ini Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of pip1.5, Pip no longer supports use-mirrors. You might as well wipe out this section.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I'll take it out. Thanks.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. I'll remove that.

@ghost
Copy link

ghost commented Feb 12, 2014

Could you add the .tox directory that tox creates to the .gitignore file?

@mdruger
Copy link
Author

mdruger commented Feb 13, 2014

I'll add the entry, .tox/ to the .gitignore file as well.

@mdruger mdruger closed this Feb 13, 2014
@mdruger mdruger reopened this Feb 13, 2014
tox.ini Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you append a [] to the end of this command it will allow tox to optionally accept command line arguments for nosetests. So the commands will look like:

[testenv]
commands = python setup.py nosetests []

This will allow others to run specific tests or enable some other nose features.

For example, in order to verbosely run the test_aweber_api test across all of the supported Tox environments.:

env/bin/tox -- -v -x test/test_aweber_api.py

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, I'll add that.

ghost pushed a commit that referenced this pull request Feb 14, 2014
Add Tox: Include tox for multiversion testing
@ghost ghost merged commit 0c25196 into master Feb 14, 2014
@ghost ghost deleted the add-tox branch February 14, 2014 20:06
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants