使用 .runsettings 文件配置 Qt Test
Visual Studio 使用基于 XML 的 .runsettings 文件来定义和自定义单元测试的行为。这些文件可控制测试的发现、执行和报告。
要为整个解决方案指定全局设置,请访问Tools >Options >Qt >Test Adapter 。

如果没有特定于项目或整个解决方案的 .runsettings 文件,全局设置的值将作为默认值使用。
项目专用或解决方案范围的 .runsettings 文件中的值会覆盖全局设置。合并设置可自定义测试行为。
另请参阅 测试适配器设置。
© 2026 The Qt Company Ltd. 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.