mac安装allure及allure:command not fund问题解决

一、下载

下载连接:https://github.com/allure-framework/allure2/releases

选择任意压缩包进行下载

二、解压

解压后是一个文件夹

三、打开终端

bash 复制代码
# bash终端
vim ~/.bash_profile
# zsh终端
vim ~/.zshrc

四、配置环境变量

bash 复制代码
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# 将${PATH}:后面的路径改为自己allure的路径
export PATH=${PATH}:/Users/zhangmeng/Documents/WORK/testtools/allure-2.29.0/bin

五、运行命令,使环境变量生效

bash 复制代码
# bash终端
source ~/.bash_profile
 
# zsh终端
source ~/.zshrc

六、输入命令查看allure是否安装成功,返回版本号即安装成功

bash 复制代码
allure --version

在pycharm终端运行allure serve allure_report,提示allure:command not fund

重启电脑

相关推荐
BlackWolfSky18 分钟前
鸿蒙文件操作
macos·华为·harmonyos·鸿蒙
私人珍藏库2 小时前
[Android] AR绘画素描1.0版(AR Draw - Sketch Anime Cartoon 1.0)
macos·ar·sketch
cmdyu_21 小时前
修复mac系统下node22安装模块报fatal error: ‘memory‘ file not found错误的问题
macos·npm·node.js
白玉cfc1 天前
【iOS】UICollectionView
macos·ios·cocoa
fukai77221 天前
BetterDisplay Pro for Mac显示器增强工具
macos·计算机外设
ajassi20001 天前
开源 Objective-C IOS 应用开发(一)macOS 的使用
macos·ios
MonkeyKing_sunyuhua1 天前
mac怎么卸载office Powerpoint
macos·powerpoint
lichong9511 天前
【macOS 版】Android studio jdk 1.8 gradle 一键打包成 release 包的脚本
android·java·前端·macos·android studio·大前端·大前端++
fukai77221 天前
优雅与极简:将你的屏幕变成复古翻页钟——Fliqlo for Mac 完全指南
macos
BianHuanShiZhe2 天前
ios 26的tabbar 背景透明
macos·objective-c·cocoa