Adicionar testes a projetos de teste existentes
Para adicionar um novo arquivo com casos de teste a um projeto que contenha um projeto de teste:
- Acesse “ File ” > “ New File ”.
- Selecione “ Test Case ” > “ Choose ”.
- Em “ Test framework ”, selecione a estrutura de testes em uso. Ela deve corresponder à estrutura de testes que você está usando no projeto ao qual deseja adicionar esse arquivo.

As configurações a serem especificadas dependem da estrutura de testes selecionada.
Observação: isso é compatível apenas com estruturas de teste baseadas em código, exceto para o Qt Test. Não há suporte oficial para ter vários casos de teste dentro de um único aplicativo de teste Qt, e é melhor criar um subprojeto de teste separado para cada caso de teste.
Veja também Como fazer: Testes e Testagem.
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.