Ask Your Question
0

How to run unit test for single module?

asked 2013-08-15 00:11:40 -0600

wu-wenxiang gravatar image

In keystone, ./run-test.sh tests.test-module could run single test module. How could we do this job in horizon?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-08-28 03:50:26 -0600

sanjana gravatar image

Try the command ./run_tests.sh openstack_dashboards.dashboards.admin.flavors.test (This is if you want to run the test cases for flavors. Mention the path accordingly)

edit flag offensive delete link more
0

answered 2013-08-15 13:49:51 -0600

wu-wenxiang gravatar image

Thanks Lin Hua Cheng, that solved my question.

edit flag offensive delete link more
0

answered 2013-08-15 05:39:00 -0600

lin-hua-cheng gravatar image

Here is more details from the docs: https://github.com/openstack/horizon/blob/master/doc/source/ref/run_tests.rst#running-a-subset-of-tests (https://github.com/openstack/horizon/...)

edit flag offensive delete link more
0

answered 2013-08-15 05:34:58 -0600

lin-hua-cheng gravatar image

You can use this command: ./run_tests.sh openstack_dashboard.dashboards.admin.domains.tests

Where openstack_dashboard.dashboards.admin.domains.tests is the path to the test module.

edit flag offensive delete link more

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: 2013-08-15 00:11:40 -0600

Seen: 148 times

Last updated: Aug 28 '15