.runsettings ファイルを使用して Qt テストを設定する

Visual Studio では、XML ベースの .runsettings ファイルを使用して、ユニットテストの動作を定義し、カスタマイズします。このファイルは、テストの検出、実行、およびレポートを制御します。

ソリューション全体のグローバル設定を指定するには、Tools >Options >Qt >Test Adapter の順に進んでください。

Qt オプションのテストアダプタ

プロジェクト固有またはソリューション全体の .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.