Ask Your Question

how to run testcases in tempest for a particular attributes like smoke,gate

asked 2014-03-24 04:34:06 -0500 gravatar image


i am trying to run testcases in tempest using nose for a particular attributes/tags such as smoke,gate or negative

nosetests -v -a type=smoke

I am using above command to run the testcases but none of them ran.

Can you please tell me how to run testcases for a particular attribute/tag which is a decorator above every testcase

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-25 08:33:30 -0500

darragh-oreilly gravatar image

updated 2014-03-25 08:38:10 -0500

Have a look at

$ ./ -N --smoke
Ran 242 tests in 244.280s

Althought what exactly qualifies a test as a smoketest is beyond me.

./ -N
Ran 242 tests in 282.677s

$ testr list-tests | grep smoke | wc -l

$ testr list-tests | grep gate | wc -l

$ testr list-tests | grep gate | grep -v smoke | wc -l

Anyway, you can do something like this either:

$ testr list-tests | grep negative > /tmp/negative_tests
$ testr run --load-list=/tmp/negative_tests
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-03-24 04:34:06 -0500

Seen: 1,179 times

Last updated: Mar 25 '14