“0跳过,0列入黑名单"是什么意思在 Qt 单元测试框架中意味着什么? [英] What does "0 skipped, 0 blacklisted" mean in the Qt Unit Test framework?

查看:23
本文介绍了“0跳过,0列入黑名单"是什么意思在 Qt 单元测试框架中意味着什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 Qt 单元测试项目时,它以如下所示的摘要结束:

When I run my Qt Unit Test project, it ends with a summary that looks like this:

Totals: 28 passed, 1 failed, 0 skipped, 0 blacklisted

通过"和失败"类别显而易见,但跳过"和列入黑名单"是什么意思?

The "passed" and "failed" categories are obvious, but what is the meaning of "skipped" and "blacklisted"?

在什么情况下测试框架会跳过测试?这与将其列入黑名单有何不同?

Under what conditions will the test framework skip a test? How is that different from blacklisting it?

我的 Qt 版本是 Qt 5.4.1.

My Qt version is Qt 5.4.1.

推荐答案

测试被跳过,如果 QSKIP() 从测试函数调用.

Test is skipped, if QSKIP() called from a test function.

QTestlib 在 test 目录中查找名为 BLACKLIST 的文件,如果找到则对其进行解析.该文件包含要列入黑名单的简单 ini 样式的函数列表.有关详细信息,请参阅 qtestblacklist.cpp.

QTestlib looks for a file called BLACKLIST in the test directory and parses it if found. The file contains a simple ini style list of functions to blacklist. For details see qtestblacklist.cpp.

这篇关于“0跳过,0列入黑名单"是什么意思在 Qt 单元测试框架中意味着什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆