Test e debug
Qt offre diverse funzionalità per aiutarti a sviluppare codice di alta qualità. Sono disponibili funzionalità che facilitano il debug per individuare i bug e strumenti di test che aiutano a prevenirne la comparsa.
Test unitari
Qt facilita la creazione di test unitari per verificare interfacce quali classi, funzioni o intere librerie.
- Qt Test (noto anche come testlib) - un framework per i test unitari del codice C++
- Qt Quick Test - un framework per i test unitari del codice QML
Test automatici
Qt stesso dispone di un numero significativo di test unitari scritti con i framework Qt Test e Qt Quick Test (autotest). Questi autotest sono disponibili per lo studio nelle directory tests/auto del codice sorgente di ciascun modulo Qt. Gli autotest costituiscono una parte importante del processo di garanzia continua della qualità nello sviluppo di Qt.
Il workflow completo di debug di Qt Creator
Qt Creatoril flusso di lavoro completo di debug supporta il debug sia del codice C++ che di quello QML, oltre alla possibilità di profilare il codice.
Per ulteriori informazioni, consultare la documentazione diQt Creator :
Tecniche di debug
Queste pagine contengono suggerimenti per il debug in varie circostanze:
- Tecniche di debug - per il codice C++
- Debug delle applicazioni QML
- Debug dei plugin
© 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.