windows
安装需要一个类似
macos
上
brew
的包,就是
scoop
,可以参考
scoop
官网
https://scoop.sh/
安装scope
win+R打开终端,输入PowerShell,打开PowerShell终端
1.
在
PowerShell
中打开远程权限
Set-ExecutionPolicy RemoteSigned -scope CurrentUser;
2.
自定义
Scoop
安装目录
(
可以跳过
)
$env:SCOOP='Your_Scoop_Path'
[Environment]::SetEnvironmentVariable('SCOOP', $env:SCOOP, 'User')
如果跳过该步骤,
Scoop
将默认把所有用户安装的
App
和
Scoop
本身置于
C:\Users\user_name\scoop
3.
下载并安装
Scoop
iwr -useb https://gitee.com/glsnames/scoop-installer/raw/master/bin/install.ps1 | iex
scoop config SCOOP_REPO 'https://gitee.com/glsnames/scoop-installer'
scoop update
安装allure
执行命令 scoop install allure
使用命令 allure --version
只要出现版本号就表示安装成功,后续我们就可以使用了。大家使用上面的命令安装的都是最新的版本。
以上安装的是
allure
的服务端,我们还要安装一下
allure
提供的
python
包
pip install allure-pytest