python - python nosetests 中的结果汇总报告

标签 python nose nosetests

我使用 nosetests 命令执行 python 文件,我经常一次运行 100 多个 python 文件,很多时候测试用例文件将根据 @attr 值被跳过。是否有插件可用于获取测试用例结果的摘要或类似下面的摘要

Test1 --> passed
Test2 --> failed
Test3 --> error
Test4 --> skipped

最佳答案

可以使用 Xunit 参数将测试结果输出到 XML:

如果在命令行输入以下内容:

$ nosetests --help

这为 nosetests 提供了一系列选项,包括所需的参数,即:

--with-xunit

关于python - python nosetests 中的结果汇总报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21790341/

相关文章:

python - Python 3 中的 Nose 提示但不是 2

python - 一个循环根据另一个列值查找最小值,并合并到 1 个数据帧中?

python - 为什么变量不在循环外更新?

teamcity 中的 python nose 测试报告

python - 如何覆盖 nosetest 拆解功能?

django - 如何使用 django-nose 运行单个测试或单个 TestCase?

python - 高效搜索大量 URL

python - 从列表到元组

python - 将参数传递给 nosetest

python - Nosetests 导入错误