既存のテストプロジェクトにテストを追加する
テストプロジェクトを含むプロジェクトに、テストケースを含む新しいファイルを追加するには:
- 「File 」>「New File 」に移動します。
- 「Test Case 」>「Choose 」を選択します。
- 「Test framework 」で、使用中のテストフレームワークを選択します。これは、このファイルを追加するプロジェクト内で使用しているテストフレームワークと一致している必要があります。

指定する設定は、選択したテストフレームワークによって異なります。
注:これは 、Qt Test を除き、コードベースのテストフレームワークでのみサポートされています。単一の Qt テストアプリケーション内に複数のテストケースを含めることについては公式なサポートがなく、テストケースごとに個別のテストサブプロジェクトを作成することをお勧めします。
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.