How to run unit test?

asked 2013-08-05 13:15:59 -0600

wu-wenxiang gravatar image

In other modules, running unit test is very easy: run-test.sh will build a virtual environment. However I could find run-test.sh in swift.

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-08-15 14:05:16 -0600

wu-wenxiang gravatar image

Thanks Kun Huang, that solved my question.

edit flag offensive delete link more
0

answered 2013-08-06 09:19:59 -0600

run "./.unittests"

edit flag offensive delete link more
0

answered 2013-08-05 17:59:39 -0600

forgot to paste the 2nd link: http://docs.openstack.org/developer/swift/development_saio.html (http://docs.openstack.org/developer/s...)

edit flag offensive delete link more
0

answered 2013-08-05 17:58:55 -0600

So I'm a newbie but spent the whole weekend running and debugging unit tests so might be able to help. This link http://docs.openstack.org/developer/swift/development_guidelines.html (http://docs.openstack.org/developer/s...) has directions on setting up tox and then this link (near the bottom) showing AIO setup talks about it as well (how to run functests, unittests, probetests).

edit flag offensive delete link more
0

answered 2013-08-05 18:07:16 -0600

aji-zqfan gravatar image

using tox instead(sudo pip install tox), you can specify the python interpret environment, for i.e. tox -e py27, or directly run tox which will try to check all unit test for py26,py27,py33,pep8

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-08-05 13:15:59 -0600

Seen: 62 times

Last updated: Aug 15 '13