Ask Your Question
0

How to run tempest tests, "testr" vs "nosetests"?

asked 2014-07-25 10:01:56 -0600

danno gravatar image

What is the difference between using "tester run --parallel" and "nosetests -v tempest" to run the tests?

The total number of tests ran is different between the 2 methods.

E.g.

"testr run --parallel"

Ran 1973 (+1972) tests in 3679.819s (+3679.582s)

FAILED (id=2, failures=2 (+2), skips=233)

"nosetests –v tempest"

Ran 2160 tests in 5648.261s

FAILED (SKIP=233, errors=125, failures=4)

Also, for the test result of testr, what does (+1972) or (+2) mean?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-01-06 07:30:58 -0600

Jagan Prakash gravatar image

using testr run you can't able to stop the test, after finishing the test it will show you that "Failed test = 100".

using nosetests we can able to stop the test once the test fail. That can done by executing the below command

nosetests -vx tempest.api.object_storage.test_container_services:ContainerTest.test_create_container

Note: -vxl

x ---> Stop running tests after the first error or failure.

l ---> Run test in Debug mode: So we can see better error message.

for this purpose we are going for nosetest.

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

[hide preview]

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-07-25 10:01:56 -0600

Seen: 943 times

Last updated: Jan 06