【原文链接】
1 下载Allure安装包
打开 allure的github地址https://github.com/allure-framework/allure2/releases,从中找到tgz的发布包,右键拷贝链接
2 在CentOS虚拟机上使用wget下载
如:
wget https://github.com/allure-framework/allure2/releases/download/2.16.1/allure-2.16.1.tgz
3 将allure解压到/usr/local/ 目录下
tar -zxvf allure-2.16.1.tgz -C /usr/local/
4 配置环境变量
编辑 /etc/profile 文件,在文件默认增加如下内容
export PATH=$PATH:/usr/local/allure-2.16.1/bin
然后执行
source /etc/profile
5 验证allure是否成功
如下,表示安装成功
[root@iZbp1flzt6x7pxmxfhmxeeZ bin]# allure --version
2.16.1
[root@iZbp1flzt6x7pxmxfhmxeeZ bin]#