【发布时间】:2014-08-19 13:03:47
【问题描述】:
我在 tempest 文件夹中创建了一个 sampletest.txt 文件,并在该文件中写入了 tempest 测试用例位置。
现在我想使用 testr 或 nosetest 运行该文件,以便执行该文件中存在的所有测试用例。 例子 sampletest.txt 文件中的内容
tempest.api.identity.admin.test_users:UsersTestJSON.test_create_user_with_enabled
tempest.api.identity.admin.test_roles:RolesTestJSON.test_role_create_delete
tempest.api.identity.admin.test_roles:RolesTestJSON.test_get_role_by_id
tempest.api.identity.admin.test_roles:RolesTestJSON.test_remove_user_role
现在我想执行这个 sampletest.txt 文件,以便执行所有测试用例... 如果我正在执行此文件 nosetests -vx sampletest.txt ,我会收到错误
【问题讨论】:
标签: python-2.7 ubuntu openstack testr