mac安装Pytest、Allure、brew

安装环境
安装pytest

命令 pip3 install pytest

安装allure 命令:brew install allure

好吧 那我们在安装allure之前 我们先安装brew

安装brew

去了官网复制了命令 还是无法下载

如果你们也和我一样可以用这个方法哦

使用国内的代码仓库来执行brew的安装脚本,电脑端输入以下命令:

复制代码
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

按回车后,根据提示操作:输入镜像序号 --> 输入Y,回车等待brew安装完成即可。

查看版本命令:brew --version

然后我们接着来安装allure

在安装allure之前,先确认电脑已经安装了jdk1.8+

安装allure

allure的官网下载地址:

https://github.com/allure-framework/allure2/releases或者下载allure命令:brew install allure

下载完成后如下图

查看版本命令:allure --version

配置环境变量

打开终端 输入命令vi ~/.bash_profile 进入写入模式

复制代码
PATH="/Users/rooenycate/Documents/allure-2.13.8/bin:${PATH}"
export PATH

第一行是自己的文件路径

最后执行命令:source ~/.bash_profile

安装allure-pytest

命令:pip install allure-pytest

好啦 安装就捡到这里啦

相关推荐
敏编程4 小时前
一天一个Python库:jsonschema - JSON 数据验证利器
python
前端付豪4 小时前
LangChain记忆:通过Memory记住上次的对话细节
人工智能·python·langchain
databook5 小时前
ManimCE v0.20.1 发布:LaTeX 渲染修复与动画稳定性提升
python·动效
花酒锄作田17 小时前
使用 pkgutil 实现动态插件系统
python
前端付豪21 小时前
LangChain链 写一篇完美推文?用SequencialChain链接不同的组件
人工智能·python·langchain
曲幽1 天前
FastAPI实战:打造本地文生图接口,ollama+diffusers让AI绘画更听话
python·fastapi·web·cors·diffusers·lcm·ollama·dreamshaper8·txt2img
老赵全栈实战1 天前
Pydantic配置管理最佳实践(一)
python
阿尔的代码屋1 天前
[大模型实战 07] 基于 LlamaIndex ReAct 框架手搓全自动博客监控 Agent
人工智能·python
pe7er2 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
AI探索者2 天前
LangGraph StateGraph 实战:状态机聊天机器人构建指南
python