繁体   English   中英

运行 nosetests allure 插件时没有这样的选项 --with-allure

[英]no such option --with-allure when running nosetests allure plugin

我正在尝试让 nose allure 插件与 nosetests 一起使用以进行简单测试。 我可以让它在我的本地机器上工作,但是在我的远程服务器上安装了所有必要的 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)
click (3.3)
coverage (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)
Fabric (1.10.1)
fakeredis (0.6.1)
linecache2 (1.0.0)
logilab-common (0.63.2)
lxml (3.4.4)
mock (1.0.1)
MySQL-python (1.2.5)
namedlist (1.7)
nose (1.3.7)
nose-allure-plugin (1.0.1)
nose-cprof (0.1-0)
parameterizedtestcase (0.1.0)
paramiko (1.15.2)
pep8 (1.6.2)
pip (7.1.0)
py (1.4.30)
pycrypto (2.6.1)
pylint (1.4.3)
pytest (2.7.2)
pytest-allure-adaptor (1.6.6)
redis (2.10.3)
requests (2.7.0)
selenium (2.45.0)
setuptools (18.0.1)
six (1.9.0)
traceback2 (1.4.0)
Unipath (1.0)
unittest2 (1.0.1)
wheel (0.24.0)
(env)

服务器上的列表

[root@server kieran]# pip list

argparse (1.2.1)
coverage (3.0.1)
distribute (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)
namedlist (1.7)
nose (1.3.7)
nose-allure-plugin (1.0.1)
ordereddict (1.2)
oz (0.12.0)
pip (7.1.0)
py (1.4.30)
pycurl (7.19.0)
pygpgme (0.1)
pytest (2.7.2)
pytest-allure-adaptor (1.6.6)
python-meh (0.11)
scdate (1.9.60)
setuptools (0.6rc11)
six (1.9.0)
slip (0.2.20)
Unipath (0.2.1)
unittest2 (0.5.1)
urlgrabber (3.9.1)
yum-metadata-parser (1.1.2)

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM