扫描测试前应用过滤器

覆盖当前项目的测试首选项:

  1. 转至Projects >Project Settings >Testing

    在项目模式下测试设置

  2. 清除Use global settings ,选择要处理的项目测试。
  3. 要在成功构建当前项目后自动运行所有或选定测试,请在Automatically run tests after build 中选择AllSelected
  4. 要在扫描测试前应用路径筛选器,请选择Limit Files to Path Patterns
  5. 选择Add 可将过滤器添加为通配符表达式。

要移除所选过滤器,请选择Remove

另请参阅 "如何:测试"、"测试结果"和"测试"。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.