Ask Your Question
0

Where is run_tests.sh?

asked 2014-10-28 05:35:34 -0600

teju gravatar image

I installed icehouse packages in Ubuntu 14.04 by following the below link:

http://docs.openstack.org/icehouse/in...

All the dashboard applications in /usr/share/openstack-dashboard/openstack_dashboard/dashboards have tests.py.

But, how do I run these tests?

I don't see any file like run_tests.sh.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-10-28 06:24:27 -0600

rajiv-kumar gravatar image

you can run test using nosetests. It looks in the file having callables names started with test_AAA run them, where AAA can be any string . So, If you have a file test.py you can run tests as follow

nosetests test.py

It call all the functions defined in this file and starts with test_ as prefix.

edit flag offensive delete link more

Comments

Thanks for your reply. When I run nosetests test.py, I get the below error:

http://pastebin.com/Qya1DTKs

How to fix this?

teju gravatar imageteju ( 2014-10-29 00:02:54 -0600 )edit

I googled it and that's what i got. http://stackoverflow.com/questions/21764607/nosetests-giving-improperly-configured-error (http://stackoverflow.com/questions/21...)

rajiv-kumar gravatar imagerajiv-kumar ( 2014-10-29 00:39:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-28 05:35:34 -0600

Seen: 87 times

Last updated: Oct 28 '14