GoGPT Best VPN GoSearch

OnWorks 网站图标

pytest - 云端在线

通过 Ubuntu Online、Fedora Online、Windows 在线模拟器或 MAC OS 在线模拟器在 OnWorks 免费托管服务提供商中运行 pytest

这是 pytest 命令,可以使用我们的多个免费在线工作站之一在 OnWorks 免费托管服务提供商中运行,例如 Ubuntu Online、Fedora Online、Windows 在线模拟器或 MAC OS 在线模拟器

程序:

您的姓名


测试 - 运行 python 单元测试

概要


用法:pytest [OPTIONS] [testfile [testpattern]]

例子:

pytest 路径/to/mytests.py pytest 路径/to/mytests.py 这些测试 pytest 路径/to/mytests.py
这些Tests.test_thisone

pytest 一(将同时运行 test_thisone 和 test_thatone) pytest path/to/mytests.py -s 而不去
(将跳过 test_notthisone)

测试 --覆盖率 测试_foo.py

(仅当 logilab.devtools 可用时)

opţiuni:
-h, - 帮帮我
显示此帮助信息并退出

-t 测试目录
将在其中找到测试的目录

-d 启用按合同设计

-v, --详细
详细输出

-i, --pdb
启用测试失败检查(与 --覆盖率)

-x, --先退出
第一次失败时退出(仅在 pytest 运行一个测试文件时才有意义)

-s 跳过, - 跳过=跳过
匹配此名称的测试名称将被跳过以跳过多个模式,使用逗号

-q, - 安静的
最小输出

-P 轮廓, - 轮廓=
配置文件执行并将数据存储在给定文件中

--覆盖率
使用 pycoverage 运行测试(与 --pdb)

使用 onworks.net 服务在线使用 pytest


免费服务器和工作站

下载 Windows 和 Linux 应用程序

Linux 命令

Ad




×
广告
❤️在这里购物、预订或购买——免费,有助于保持服务免费。