没有这样的选择 - 运行nosetests诱惑插件时的诱惑力

时间:2016-01-19 18:34:41

标签: python nose allure

我正试图让鼻子诱惑插件与鼻子测试一起进行简单的测试。我可以在我的本地机器上运行但是在我的远程服务器上安装了所有必需的python包并在那里运行之后我得到以下错误

  

[root @ server kieran]#nosetests test.py --nologcapture --with-allure --logdir =。/ allure-xmls

     

用法:nosetests [选项]

     

nosetests:错误:没有这样的选择:--with-allure

我已经在本地和远程检查了必要的包,它们是相同的,我在这里缺少什么?

本地包裹清单

astroid(1.3.6) autopep8(1.1.1) 点击(3.3) 覆盖范围(4.0b3) docopt(0.6.2) dv(0.0.0) ecdsa(0.13) EnmUtils(0.0.0) EnmUtilsInt(0.0.0) enum34(1.0.4) epydoc(3.0.1) 面料(1.10.1) fakeredis(0.6.1) linecache2(1.0.0) logilab-common(0.63.2) lxml(3.4.4) 模拟(1.0.1) MySQL-python(1.2.5) 命名表(1.7) 鼻子(1.3.7) nose-allure-plugin(1.0.1) nose-cprof(0.1-0) 参数化测试用例(0.1.0) 帕拉米科(1.15.2) pep8(1.6.2) 点子(7.1.0) py(1.4.30) pycrypto(2.6.1) pylint(1.4.3) pytest(2.7.2) pytest-allure-adapter(1.6.6) redis(2.10.3) 请求(2.7.0) 硒(2.45.0) setuptools(18.0.1) 六(1.9.0) traceback2(1.4.0) Unipath(1.0) unittest2(1.0.1) 轮(0.24.0) (ENV)

服务器上的列表

[root @ server kieran] #pip list

argparse(1.2.1) 报道(3.0.1) 分发(0.6.10) enum34(1.0) ethtool(0.6) firstboot(1.110) glusterfs-api(3.6.0.29) iniparse(0.3.1) iwlib(1.0) lxml(3.5.0) M2Crypto(0.20.2) MySQL-python(1.2.3rc1) 命名表(1.7) 鼻子(1.3.7) nose-allure-plugin(1.0.1) ordereddict(1.2) 盎司(0.12.0) 点子(7.1.0) py(1.4.30) pycurl(7.19.0) pygpgme(0.1) pytest(2.7.2) pytest-allure-adapter(1.6.6) python-meh(0.11) scdate(1.9.60) setuptools(0.6rc11) 六(1.9.0) 滑(0.2.20) Unipath(0.2.1) unittest2(0.5.1) urlgrabber(3.9.1) yum-metadata-parser(1.1.2)

1 个答案:

答案 0 :(得分:2)

@Kieran,您只需要在运行测试的虚拟环境中安装插件。 试试这个: pip install nose-allure-plugin