其他分享
首页 > 其他分享> > pytest基础----控制台输出信息

pytest基础----控制台输出信息

作者:互联网

 

 

•第一行:
platform win32 – Python 3.7.0, pytest-5.4.1, py-1.8.1, pluggy-0.13.1
运行的系统平台,Python版本,pytest版本,以及pytest的两个包 py 和 pluggy 的版本。

•第二行:
rootdir: D:\study\python_work\gm_lianxi\pytest_gm
rootdir(当前起始目录),infile 用于列举配置文件(这里没有指定)

•第三行:
plugins: allure-pytest-2.8.12
plugins(使用到的插件)

•第四行:collected 1 items
搜索范围内找到一个测试条目

•第五行:test_first.py .
first.py 表示测试文件, . 表示测试通过。

•最后一行:
==== 1 passed in 0.01s ====
表示测试通过的数量以及这段会话耗费的时间。

标签:输出,Python,py,测试通过,pytest,控制台,pluggy,first
来源: https://www.cnblogs.com/gmjianchi/p/12930272.html